Part Number Hot Search : 
NSR2N7 W20NC50 4ACT2 CMWD140 660CT 0SH0670 HCS154K HV3922
Product Description
Full Text Search
 

To Download DA7217-00U32 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 1 of 171 ? 2016 dialog semiconductor g eneral d escription da7217 is a high - performance, low - power audio codec optimized for use in headsets or wearable devices. it has differential headphone outputs for use inside headset devices, offering excellent left to right channel separation and common mode noise rejection. da7217 also has a stereo dac to headphone output path and ultra - low power operating modes to support always - on audio detect applications. da7217 contains two anal og microphone input paths, or up to four digital microphone input paths, or a combination of both. the other chip in this family, the da7218, has single - ended headphone outputs, and has been designed with headphone detect for use in accessories. key f eatu res high performance stereo dac to headpho ne playback path with 110 db dynamic range 4 mw stereo playback power consumption dac digital filters with audio and voice mode options, five - band equalizer and five programmable biquad stages dedicated low - latency digital sideband filter with three programmable biquad stages high performance microphone to adc record path with 105 db dynamic range 2.5 mw stereo record power consumption adc digital filters with audio and voice mode options 500 w always - on record mod e with automatic level detection hybrid analog / digital automatic level control to dynamically control the record level shutdown mode offering current consumption during standby of 2. 5 a two low - noise microphone bias regulators with programmable output voltage and ultra - low power mode a high efficiency two - level, true - ground charge pump for generating class - g headphone supplies voice mode filtering up to 32 khz flexible digital mixing from all seven inputs to all six outputs with independent gain on eac h mixer path ability to run the adcs at a different sample rate to the dacs on a single i 2 s interface digital tone generator with built - in support for dtmf system controller for simplified, pop - free start - up and shutdown phase - locked loop with sample rate tracking supporting mclk frequencies from 2 mhz to 54 mhz automatic tuning of on - chip reference oscillator for clock - free operation in low - power modes 4 - wire digital audio interface with support for i 2 s , four - channel i 2 s , tdm and other audio formats 2 - wire i 2 c compatible control interface with support for high speed mode up to 3.4 mhz 24 - bit data at up to 96 khz sample rate the headphone amplifier can be run directly from the supply, thus eliminating the need for charge pump capacitors applications hearables wireless and wired headphones wireless and wired headsets
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 2 of 171 ? 2016 dialog semiconductor system d iagram figure 1 : da7217 with d ifferential s tereo h eadphone o utputs m i c r o p h o n e i n p u t s a n a l o g o r d i g i t a l d a 7 2 1 7 a p p l i c a t i o n s p r o c e s s o r d i f f e r e n t i a l s t e r e o s p e a k e r / h e a d p h o n e d r i v e r s c o n t r o l i n t e r f a c e d i g i t a l a u d i o i n t e r f a c e
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 3 of 171 ? 2016 dialog semiconductor contents general description ................................ ................................ ................................ ............................ 1 key features ................................ ................................ ................................ ................................ ........ 1 applications ................................ ................................ ................................ ................................ ......... 1 system diagram ................................ ................................ ................................ ................................ .. 2 contents ................................ ................................ ................................ ................................ ............... 3 1 terms and definitions ................................ ................................ ................................ ................... 7 2 terminology ................................ ................................ ................................ ................................ ... 8 3 block d iagram ................................ ................................ ................................ ............................... 9 4 pinout ................................ ................................ ................................ ................................ ............. 9 4.1 input p ins ................................ ................................ ................................ ............................ 11 4.1.1 mic1_p (dmic1clk) ................................ ................................ .......................... 11 4.1.2 mic1_n (dmic1in) ................................ ................................ ............................. 11 4.1.3 mic2_p (dmic2clk) ................................ ................................ .......................... 11 4.1.4 mic2_n (dmic2in) ................................ ................................ ............................. 11 4.1.5 mclk ................................ ................................ ................................ ................... 11 4.1.6 scl ................................ ................................ ................................ ...................... 12 4.1.7 ad ................................ ................................ ................................ ........................ 12 4.1.8 datin ................................ ................................ ................................ .................. 12 4.2 output pins ................................ ................................ ................................ ......................... 12 4.2.1 nirq ................................ ................................ ................................ ..................... 12 4.2.2 datout ................................ ................................ ................................ .............. 12 4.3 bi - directional pins ................................ ................................ ................................ ............... 12 4.3.1 sda ................................ ................................ ................................ ...................... 12 4.3.2 bclk ................................ ................................ ................................ .................... 12 4.3.3 wclk ................................ ................................ ................................ ................... 12 4.4 differential headphone pins ................................ ................................ ............................... 12 4.4.1 hpl_p ................................ ................................ ................................ .................. 12 4.4.2 hpl_n ................................ ................................ ................................ ................. 12 4.4.3 hpr_p ................................ ................................ ................................ ................. 12 4.4.4 hpr_n ................................ ................................ ................................ ................. 13 4.5 charge pump pins ................................ ................................ ................................ .............. 13 4.5.1 hpcsp ................................ ................................ ................................ ................. 13 4.5.2 hpcsn ................................ ................................ ................................ ................ 13 4.5.3 hpcfp ................................ ................................ ................................ ................. 13 4.5.4 hpcfn ................................ ................................ ................................ ................. 13 4.6 references ................................ ................................ ................................ .......................... 13 4.6.1 vmid ................................ ................................ ................................ .................... 13 4.6.2 dacref ................................ ................................ ................................ .............. 13 4.6.3 vref ................................ ................................ ................................ ................... 13 4.6.4 micbias1 ................................ ................................ ................................ ............ 13 4.6.5 micbias2 ................................ ................................ ................................ ............ 13 4.6.6 vdddig ................................ ................................ ................................ ............... 13 4 .7 supply pins ................................ ................................ ................................ ......................... 14 4.7.1 vdd ................................ ................................ ................................ ..................... 14
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 4 of 171 ? 2016 dialog semiconductor 4.7.2 vdd_io ................................ ................................ ................................ ................ 14 4.7.3 vdd_mic ................................ ................................ ................................ ............. 14 4.8 ground pins ................................ ................................ ................................ ........................ 14 4.8.1 gnd ................................ ................................ ................................ ..................... 14 4.8.2 gnd_cp ................................ ................................ ................................ .............. 14 5 absolute maximum ratings ................................ ................................ ................................ ....... 15 6 recommended operating c onditions ................................ ................................ ....................... 15 7 electrical characteristics ................................ ................................ ................................ ........... 16 8 digital interfaces ................................ ................................ ................................ ......................... 23 9 functional description ................................ ................................ ................................ ............... 26 9.1 device operation ................................ ................................ ................................ ................ 26 9.1.1 power modes ................................ ................................ ................................ ....... 26 9.1.1.1 standby mode ................................ ................................ .............. 26 9.1.1.2 active mode ................................ ................................ .................. 26 9.2 input paths ................................ ................................ ................................ .......................... 26 9.2.1 microphone inputs ................................ ................................ ............................... 26 9.2.1.1 microphone biases ................................ ................................ .......... 27 9.2.1.2 microphone amplifi er ................................ ................................ ....... 28 9.2.1.3 digital microphones ................................ ................................ ......... 28 9.2.1.4 input amplifiers ................................ ................................ ................ 29 9.2.2 analog to digital converters ................................ ................................ ................ 30 9.2.2.1 high per formance mode ................................ ................................ .. 30 9.2.2.2 low - power mode ................................ ................................ ............. 30 9.2.2.3 anti - alias filters ................................ ................................ ............... 30 9.3 digital engine ................................ ................................ ................................ ...................... 31 9.3.1 input processing ................................ ................................ ................................ .. 32 9.3.1.1 input filters ................................ ................................ ...................... 32 9.3.1.2 high - pass filter ................................ ................................ ............... 33 9.3.1.3 automatic level control ................................ ................................ .. 35 9.3.1.4 input dynamic range extension ................................ ..................... 36 9.3.1.5 automa tic level control and input dynamic range extension calibration ................................ ................................ ........................ 37 9.3.1.6 level detection ................................ ................................ ................ 37 9.3.2 sidetone processing ................................ ................................ ............................ 37 9.3.3 tone generator ................................ ................................ ................................ ... 40 9.3.4 the tone generator can a lso be used to produce an s - ramp by setting swg_sel to 0x03. system controller ................................ ................................ .... 40 9.3.5 output processing ................................ ................................ ............................... 41 9.3.5.1 output filters ................................ ................................ ................... 41 9.3.5.2 high - pass filter ................................ ................................ ............... 41 9.3.5.3 5 - band equalizer ................................ ................................ ............. 43 9.3.5.4 5 - stage biquad filter ................................ ................................ ....... 45 9.3.5.5 output dynamic range exten sion ................................ .................. 48 9.3.5.6 dac noise gate ................................ ................................ .............. 48 9.3.5.7 digital mixer ................................ ................................ ..................... 49 9.3.5.8 digital gain ................................ ................................ ...................... 52 9.4 output paths ................................ ................................ ................................ ....................... 53
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 5 of 171 ? 2016 dialog semiconductor 9.4.1 digital to analog converter ................................ ................................ .................. 53 9.4.2 headphone amplifiers ................................ ................................ ......................... 53 9.4.3 charge pump contro l ................................ ................................ .......................... 56 9.4.3.1 charge pump initial and switching current ................................ .... 57 9.4.4 tracking the demands on the charge pump output ................................ .......... 57 9.4.4.1 cp_mchange = 00 (manual mode) ................................ ................... 57 9.4.4.2 cp_mchange = 01 (tracking the pga gain setting) ....................... 57 9.4.4.3 cp_mchange = 10 (tracking the dac signal setting) ..................... 57 9.4.4.4 cp_mchange = 11 (tracking the output signal magnitude) ............ 58 9.4.5 specifying clock frequencies when tracking the charge pump output demand ................................ ................................ ................................ ............... 59 9.4.6 other charge pump controls ................................ ................................ .............. 59 9.4.7 true - ground supply mode ................................ ................................ .................. 59 9.5 phase locked l oop ................................ ................................ ................................ ............ 59 9.5.1 pll bypass mode ................................ ................................ ................................ 59 9.5.2 normal pll mode (dai master) ................................ ................................ .......... 60 9.5.3 example ca lculation of the feedback divider setting: ................................ ....... 61 9.5.4 sample rate matching pll mode (dai slave) ................................ ................... 61 9.5.5 mclk input ................................ ................................ ................................ .......... 62 9.5.5.1 mclk detection ................................ ................................ ............... 62 9.5.6 audio reference oscillator ................................ ................................ .................. 62 9.5.6.1 oscillator calibration ................................ ................................ ........ 62 9.5.6.2 procedure for calibrating the re ference oscillator ......................... 63 9.5.7 internal system clock ................................ ................................ .......................... 63 9.6 reference generation ................................ ................................ ................................ ......... 63 9.6.1 voltage references ................................ ................................ ............................. 63 9.6.2 bias currents ................................ ................................ ................................ ....... 6 3 9.6.3 voltage levels ................................ ................................ ................................ ..... 63 9.6.3.1 digital regulator ................................ ................................ .............. 63 9.6.3.2 digital input/outp ut pins voltage level ................................ ........... 64 9.7 i 2 c control interface ................................ ................................ ................................ ............ 64 9.8 digital audio interface ................................ ................................ ................................ ......... 67 9.8.1 dai channels ................................ ................................ ................................ ....... 68 9.8.2 dai wclk tristate mode ................................ ................................ .................... 69 9.9 interrupt control ................................ ................................ ................................ .................. 69 9.9.1 level detect events ................................ ................................ ............................. 69 9.10 system settings ................................ ................................ ................................ .................. 70 9.10.1 sample rate ................................ ................................ ................................ ........ 70 9.10.2 gain ramp rate ................................ ................................ ................................ .. 70 9.10.3 program counter control ................................ ................................ ..................... 70 9.10.4 soft reset ................................ ................................ ................................ ............ 70 10 register maps and definitions ................................ ................................ ................................ ... 71 11 package informat ion ................................ ................................ ................................ ................. 157 12 external components ................................ ................................ ................................ ............... 158 13 ordering information ................................ ................................ ................................ ................ 158 appendix a applications information ................................ ................................ ........................... 159
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 6 of 171 ? 2016 dialog semiconductor a.1 codec initiali zation ................................ ................................ ................................ ............ 159 a.2 automatic level control calibration ................................ ................................ .................. 159 appendix b components ................................ ................................ ................................ ................ 160 b.1 audio inputs ................................ ................................ ................................ ...................... 160 b.2 microphone bias ................................ ................................ ................................ ............... 161 b.3 audio outputs ................................ ................................ ................................ ................... 161 b.4 headphone charge pump ................................ ................................ ................................ 162 b.4.1 single supply mode ................................ ................................ ........................... 162 b.5 digital interfaces ................................ ................................ ................................ ............... 163 b.6 references ................................ ................................ ................................ ........................ 164 b.7 supplies ................................ ................................ ................................ ............................ 165 b.8 ground ................................ ................................ ................................ .............................. 165 b.9 capacitor selection ................................ ................................ ................................ ........... 166 appendix c pcb layout guidelines ................................ ................................ .............................. 167 c.1 layout and schematic support ................................ ................................ ......................... 167 c.2 general recommendations ................................ ................................ .............................. 168 revision history ................................ ................................ ................................ .............................. 169
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 7 of 171 ? 2016 dialog semiconductor 1 terms and d efinitions adc analog to digital converter ags adc gain swap (input dynamic range extension) alc automatic level control anc active noise cancelling biq biquad filter cic cascaded integrator and comb dac digital to analog converter dai digital audio interface dgs dac gain swap (output dynamic range extension) dmic digital microphone dre dynamic range extension dtmf dual tone multi - frequency dwa data - weighted averager hbm hu man body model hpf high - pass filter i 2 c inter - integrated circuit interface i 2 s inter - ic sound ldo low dropout regulator lpf low - pass filter mclk master clock pc program counter pdm pulse density modulated pga programmable gain amplifier pll phase locked loop psrr power supply rejection ratio [4] rc resistance - capacitance sc system controller sdm sigma delta modulator snr signal to noise ratio [5] srm sample rate matching swg sine wave generator tdm time division multiplexing thd+n total harmonic distortion plus noise [6] vco voltage - controlled oscillator
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 8 of 171 ? 2016 dialog semiconductor 2 terminology [1] crosstalk (db) is the level difference between the active path output and the idle path measured signal level, at the test signal frequency. the active path is configured and supplied with an input signal capab le of driv ing a full scale output, with the signal measured at the output of the specified idle path. [2] mute attenuation is the difference in level between the full scale output signal and the output with mute applied. [3] channel separation (db) [ left - to - right and right - to - left ] is the difference in level between the active channel (driven to maximum full scale output) and the signal level measured in the idle channel at the test signal frequency. the active channel is configured and supplied with an input signa l capable of driv ing a full scale output, with the signal measured at the output of the associated idle channel. [4] psrr is the ratio of a given power supply change relative to the output signal that results from it. psrr is measured under quiescent signal pa th conditions. [5] snr is the difference in level between the maximum full scale output signal and the output with no input signal applied . [6] thd+n is the level of the rms value of the sum of harmonic distortion products plus noise in the specified bandwidth rel ative to the amplitude of the measured output signal. all performance measurements carried out with 20 khz low pass filter, and where noted an a - weighted filter. failure to use such a filter will result in higher thd and lower snr readings than are found in the elec trical characteristics. the low - pass filter removes out of band noise; although it is not audible it may affect dynamic specification values.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 9 of 171 ? 2016 dialog semiconductor 3 block d iagram figure 2 : da7217 block diagram 4 pinout figure 3 : da7217 ballout d iagram g n d _ c p m c l k d a c r e f v m i d s d a s c l v d d d i g v d d _ i o b c l k w c l k d a t i n d a t o u t m i c 1 _ n d m i c 1 i n m i c 1 _ p d m i c 1 c l k v r e f n i r q m i c 2 _ n d m i c 2 i n m i c 2 _ p d m i c 2 c l k h p l _ n h p r _ p m i c b i a s 1 m i c b i a s 2 v d d _ m i c h p c s p h p c s n h p c f n h p c f p a d v d d g n d d i g i t a l e n g i n e d a c l p l l a d c 1 d a c r v o l t a g e r e f s l d o d i g i t a l a u d i o i n t e r f a c e d a 7 2 1 7 i n p u t f i l t e r s @ s r 1 ( h i g h - p a s s , a l c , l e v e l d e t e c t ) o u t p u t f i l t e r s @ s r 2 ( h i g h - p a s s , 5 - b a n d e q , 5 b i q u a d ) s y s t e m c o n t r o l l e r d y n a m i c r a n g e e x t e n s i o n a d c 2 4 1 2 t o n e g e n e r a t o r b i q u a d f i l t e r @ s r 2 c h a r g e p u m p i n p u t s e l e c t i o n s i d e t o n e f i l t e r @ s r 2 i 2 c c o n t r o l i n t e r f a c e h p l _ p h p r _ n 2 4 s e n s i t i v e a n a l o g u e n o i s y d i g i t a l q u a s i - s t a t i c d i g i t a l p o w e r ( u p t o 1 0 0 m a ) q u i e t g r o u n d n o i s y g r o u n d v i e w f r o m a b o v e l i v e b u g 1 a b c d 3 2 4 5 6 7 8 9 1 1 1 3 1 5 1 0 1 2 1 4 1 6 h p r _ n h p l _ p d a c r e f v m i d v d d _ m i c m i c 1 _ p h p c s p v r e f g n d _ c p h p r _ p h p l _ n v d d g n d m i c b i a s 1 m i c 1 _ n m i c b i a s 2 h p c f p h p c f n v d d _ i o d a t i n d a t o u t s c l n i r q m i c 2 _ n h p c s n v d d d i g b c l k w c l k m c l k s d a a d m i c 2 _ p
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 10 of 171 ? 2016 dialog semiconductor table 1 : da7217 p in d escription pin n o. pin n ame type ( table 2 ) description microphone i nputs a15 mic1_p dmic1clk ai/do differential analog microphone 1 input (pos) digital microphone 1 clock output b14 mic1_n dmic1in ai/di differential analog microphone 1 input (neg) digital microphone 1 data input d16 mic2_p dmic2clk ai/do differential analog microphone 2 input (pos) digital microphone 2 clock output c15 mic2_n dmic2in ai/di differential analog microphone 2 input (neg) digital microphone 2 d ata input b12 micbias1 aio microphone bias output 1 b16 micbias2 aio microphone bias output 2 headphone o utputs a5 hpl_p ao differential headphone output (left, pos) b6 hpl_n ao differential headphone output (left, neg) b4 hpr_p ao differential headphone output (right, pos) a3 hpr_n ao differential headphone output (right, neg) charge p ump a1 hpcsp aio charge pump reservoir capacitor (pos) d2 hpcsn aio charge pump reservoir capacitor (neg) c1 hpcfp aio charge pump flying capacitor (pos) c3 hpcfn aio charge pump flying capacitor (neg) digital i nterface d12 sda diod i 2 c bi - directional data c11 scl di i 2 c clock d14 ad di i 2 c slave address select (high = 1b, low = 1a) c13 nirq diod interrupt output (open drain active low) c7 datin dio dai data input to da7217 c9 datout dio dai data output from da7217 d6 bclk dio dai bit clock d8 wclk dio dai word clock d10 mclk di master clock input references a7 dacref aio dac reference decoupling capacitor a9 vmid aio mid - rail reference decoupling capacitor a11 vref aio bandgap reference decoupling capacitor linear r egulator d4 vdddig ao output from digital supply ldo
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 11 of 171 ? 2016 dialog semiconductor pin n o. pin n ame type ( table 2 ) description supplies b8 vdd ai main analog supply a13 vdd_mic ai supply for micbias ldo c5 vdd_io ai supply for digital interface and ldo b2 gnd_cp ai ground reference b10 gnd ai ground reference table 2 : pin t ype d efinition pin t ype description pin t ype description di digital input ai analog input do digital output ao analog output dio digital input/output aio analog input/output diod digital input/output open drain spu switchable pull - up resistor pu fixed pull - up resistor spd switchable pull - down resistor pd fixed pull - down resistor 4.1 input p ins 4.1.1 mic1_p (dmic1clk) mic1_p is the positive differential input for the first analog microphone channel. it can be used as a single - ended input (see figure 8 ). alternatively for digital microphones, mic1_p is used to provide a clock output. 4.1.2 mic1_n (dmic1in) mic1_n is the negative differential input for the first analog microphone channel. it can be used as a single - ended input. alternatively for digital microphon es and active noise cancelling ( anc ) applications , mic1_n is used as a pulse density modulated ( pdm ) data input. 4.1.3 mic2_p (dmic2clk) mic2_p is the positive differential input for the second analog microphone channel. it can be used as a single - ended input. a lternatively for digital microphones, mic2_p is used to provide a clock output. 4.1.4 mic2_n (dmic2in) mic2_n is the negative differential input for the second analog microphone channel. it can be used as a single - ended input. alternatively for digital microphon es and anc applications , mic2_n is used as a pdm data input. 4.1.5 mclk mclk is the master clock input pin. it is used as the main system clock either directly or via the pll.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 12 of 171 ? 2016 dialog semiconductor 4.1.6 scl scl is the c ontrol i nterface ( i 2 c ) clock input and is used in conjunction with sda to control the device. 4.1.7 a d ad is used to select between one of two possible i 2 c slave addresses by connecting the pin to gnd or vdd_io. (high = 1b, low = 1a). 4.1.8 datin datin is the data input pin which forms part of the d igital a udio i nterface (dai) . it is us ed to present audio playback data to the device. 4.2 output p ins 4.2.1 nirq nirq is the open drain active - low interrupt output to alert the host to either an accessory or a level - detect event. 4.2.2 datout datout is the data output pin , which forms part of the dai . 4.3 bi - dir ectional p ins 4.3.1 sda sda is the c ontrol i nterface ( i 2 c ) data input/output and is used in conjunction with scl to control the device. 4.3.2 bclk bclk is the bit clock input/output pin which forms part of the dai. it is used to clock audio data bits into or out from the device or both. 4.3.3 wclk wclk is the word clock input/output pin that forms part of the dai. 4.4 differential h eadphone p ins 4.4.1 hpl_p hpl_p is the positive left - channel headphone output for a headphone speaker connected between hpl_p and hpl_n. 4.4.2 hpl_n hpl_n is the negative left - channel headphone output for a headphone speaker connected between hpl_p and hpl_n. 4.4.3 hpr_p hpr_p is the positive right - channel headphone output for a headphone speaker connected between hpr_p and hpr_n.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 13 of 171 ? 2016 dialog semiconductor 4.4.4 hpr_n hpr_n is the negative right - chann el headphone output for a headphone speaker connected between hpr_p and hpr_n. 4.5 charge p ump p ins 4.5.1 hpcsp hpcsp is the positive output from the headphone charge pump. this pin should be connected to ground via a reservoir capacitor. 4.5.2 hpcsn hpcsn is the negative output from the headphone charge pump. if using the charge pump, this pin must be connected to ground via a reservoir capacitor. if the charge pump is not being used, then this pin should be tied directly to ground . 4.5.3 hpcfp hpcfp is one of the flying capacitor connections required by the headphone charge pump. if the charge pump is in use it must be connected to hpcfn via a capacitor. if the charge pump is not being used, then this pin can be left floating. 4.5.4 hpcfn hpcfp is one of the flyi ng capacitor connections required by the headphone charge pump. if the charge pump is in use it must be connected to hpcfp via a capacitor. if the charge pump is not being used, then this pin can be left floating. 4.6 references 4.6.1 vmid vmid is mid - rail reference decoupling capacitor connection. 4.6.2 dacref dacref is the dac reference decoupling capacitor connection. 4.6.3 vref vref is the bandgap reference decoupling capacitor connection. 4.6.4 micbias1 micbias1 is the first of two micbias outputs. this must be decoupled with a 1 f capacitor 4.6.5 micbias2 micbias2 is the second of two micbias outputs. this must be decoupled with a 1 f capacitor. 4.6.6 vdddig vdddig is the internal digital supply rail decoupling pin and is used to monitor the ldo output. this must be decoupled with a 1 f c apacitor.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 14 of 171 ? 2016 dialog semiconductor 4.7 supply p ins 4.7.1 vdd vdd is main analog supply pin. it supplies all the analog circuits except the micbias outputs and the hpamp outputs. 4.7.2 vdd_io vdd_io is the supply pin for the digital input/output signals. 4.7.3 vdd_mic vdd_mic is the supply pin for the micbias outputs. 4.8 ground p ins 4.8.1 gnd gnd is one of the two ground reference pins (the other is gnd_cp) on the device. connect this pin to a ground plane as close as possible to the device. 4.8.2 gnd_cp gnd_cp is one of the two ground reference pins (the other is gn d) on the device. connect this pin to a ground plane as close as possible to the device.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 15 of 171 ? 2016 dialog semiconductor 5 absolute m aximum r atings table 3 : absolute m aximum r atings ( note 1 ) parameter description conditions min max unit storage temperature C 65 +165 c t a operating temperature C 40 +85 c v dd main supply voltage C 0.3 +2.75 v v dd_io digital io supply voltage C 0.3 +5.5 v v dd_mic microphone bias supply voltage C 0.3 +5.5 v v ddio digital io pins sda, scl, ad, bclk, wclk, datin, datout, mclk , nirq C 0.3 v dd_io + 0.3 v digital microphone io pin s dmic1clk, dmic1 in C 0.3 v micbias1 + 0.3 v digital microphone io pin s dmic2clk, dmic2in - 0.3 v micbias2 + 0.3 v analog input pins mic1_p, mic1_n, mic2_p, mic2_n C 0.3 v dd + 0.3 v package thermal resistance 60 cw v esd_hbm esd susceptibility human body model (hbm) 2 kv note 1 stresses beyond those listed under absolute maximum ratings may cause permanent damage to the device. these are stress ratings only, so functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specification are not implied. exposure to absolute maximu m rating conditions for extended periods may affect device reliability. 6 recommended o perating c onditions table 4 : recommended o perating c onditions parameter description conditions min typ max unit t a operating temperature C 25 +85 c v dd main supply voltage +1.7 +2.65 v v dd_io digital io supply voltage +1.5 +3.6 v v dd_mic microphone bias supply voltage +1.8 +3.6 v
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 16 of 171 ? 2016 dialog semiconductor 7 electrical c haracteristics unless otherwise stated, test conditions are as follows: v dd = v dd_io = 1.8 v, v ddmic = 3.3 v, v dddig = 1.05 v, t a = 25 c , mclk = 12.288 mhz, sr = 48 khz, pll = bypass mode, slave mode. table 5 : power c onsumption description conditions ( note 1 ) min typ max unit powerdown mode 2.5 7 a digital playback to headphone, no load dacl/r to hp_l/r, quiescent 4 mw digital playback to headphone, with load dacl/r to hp_l/r, 32 ? load, 0.1 mw at 0 dbfs 7.7 mw microphone stereo record micl/r to adcl/r 2.5 mw microphone stereo record and digital playback to headphone, no load micl/r to adcl/r and dacl/r to hp_l/r, quiescent 5.5 mw microphone stereo record and digital playback to headphone, with load micl/r to adcl/r and dacl/r to hp_l/r, 32 ? load, 0.1 mw at 0 dbfs 8.8 mw note 1 v dd = v dd_io = v dd_mic = 1.8 v table 6 : electrical c haracteristics: microphone b ias description condition min typ max unit programmable output voltage no load, v dd_mic > v micbias + 200 mv 1.6 3.0 v output voltage step 200 mv output current output voltage droop < 50 mv 2 ma power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 70 50 db output voltage noise v micbias 2.2 v 5 v rms table 7 : electrical c haracteristics: microphone a mplifier description condition min typ max unit full - scale input signal 0 db gain, single - ended 0.8 * v dd v pp 0 db gain, differential 1.6 * v dd input resistance 12 15 18 k programmable gain ?6 36 db gain step size 6 db absolute gain accuracy 0 db @ 1 khz - 1.0 1.0 db gain step error 20 hz to 20 khz - 0.1 0.1 db input noise level inputs connected to gnd, 24 db gain, input - referred, a - weighted 5 v rms amplitude ripple 20 hz to 20 khz - 0.5 0.5 db power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 90 70 db
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 17 of 171 ? 2016 dialog semiconductor description condition min typ max unit crosstalk 20 hz to 20 khz 88 db table 8 : electrical c haracteristics: input a mplifier description condition min typ max unit full - scale input signal 0 db gain 1.6 * v dd v pp programmable gain ?4.5 18 db gain step size 1.5 db absolute gain accuracy 0 db @ 1 khz - 1.0 1.0 db gain step error 20 hz to 20 khz - 0.1 0.1 db amplitude ripple 20 hz to 20 khz - 0.5 0.5 db power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 90 70 db table 9 : electrical c haracteristics: adc description condition min typ max unit full - scale input signal 0 dbfs digital output level 1.6 * v dd v pp signal to noise ratio a - weighted 90 db dynamic range adc dre enabled, a - weighted 105 db total harmonic distortion plus noise - 1 dbfs adc output level - 85 db power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 70 50 db table 10 : electrical c haracteristics: dac description condition min typ max unit full - scale output signal 0 dbfs digital input level 1.6 * v dd v pp signal to noise ratio a - weighted 100 db dynamic range dac dre enabled, a - weighted 110 db total harmonic distortion plus noise - 1 dbfs digital input level - 90 db power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 70 50 db table 11 : electrical c haracteristics: headphone a mplifier description condition min typ max unit full - scale output signal no load 1.6 * v dd v pp dc output offset ?30 db gain 250 v maximum output power per channel (charge pump mode) v dd = 1.8 v, thd < 0.005 %, r load = 32 ?, 1 khz 30
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 1 8 of 171 ? 2016 dialog semiconductor description condition min typ max unit v dd = 2.5 v, thd < 0.005 %, r load = 32 ?, 1 khz 58 maximum output power per channel (single supply mode) v dd = 1.8 v, thd < 0.1 %, r load = 32 ?, 1 khz 19 v dd = 2.5 v, thd < 0.1 %, r load = 32 ?, 1 khz 49 quiescent current per channel 150 a load resistance 26 32 ? load capacitance 500 pf load inductance 400 h frequency response 20 hz to 20 khz - 0.5 +0.5 db signal to noise ratio v dd = 1.8 v, 0 db gain a - weighted 98 db v dd = 2.5 v, 0 db gain a - weighted 100 db output noise level 20 hz to 20 khz, <20 db gain 2.5 v rms total harmonic distortion plus noise v dd = 1.8 v, r load = 32 ?, - 5 dbfs, 1 khz ?88 db channel separation [3] v dd = 1.8v, r load = 32 ?, 1 khz - 110 db programmable gain ?57 6 db gain step size 1.5 db absolute gain accuracy 0 db @ 1 khz ?0.8 0.8 db left/right gain mismatch 20 hz to 20 khz ?0.1 0.1 db gain step error 20 hz to 20 khz ?0.1 0.1 db amplitude ripple 20 hz to 20 khz ?0.5 0.5 db mute attenuation [2] ?70 db power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 70 50 db crosstalk 2 khz to 20 khz 100 db table 12 : electrical c haracteristics: output a mplifier description condition min typ max unit full - scale input signal 0 dbfs output from the dac 1.6 * v dd vpp programmable gain ?1.0 0 db gain step size 0.5 db absolute gain accuracy 0 db @ 1 khz - 1.0 1.0 db amplitude ripple 20 hz to 20 khz - 0.5 0.5 db power supply rejection ratio 20 hz to 2 khz 2 khz to 20 khz 90 70 db
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 19 of 171 ? 2016 dialog semiconductor table 13 : electrical c haracteristics: input f ilters description condition min typ max unit pass band 0.45 * f s hz pass band ripple voice mode music mode 0.3 0.1 db stop band f s 48 khz f s = 88.2 khz or 96 khz 0.56 * f s 7 * f s 3.5 * f s hz stop band attenuation voice mode music mode 70 55 db group delay voice mode music mode f s = 88.2 khz or 96 khz 4.3 / f s 18 / f s 9 / f s s gain step size 0.75 db programmable gain - 83.25 12 db table 14 : electrical c haracteristics: a utomatic l evel c ontrol description condition min typ max unit attack rate f s = 48 khz 1.6 6500 db/s release rate f s = 48 khz 1.6 1675 db/s hold time f s = 48 khz 1.3 42300 ms maximum threshold ?94.5 0 dbfs minimum threshold ?94.5 0 dbfs noise threshold ?94.5 0 dbfs threshold step size 1.5 db maximum overall gain 0 90 db maximum overall attenuation 0 90 db maximum analog gain 0 36 db minimum analog gain 0 36 db gain step size 1.5 db
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 20 of 171 ? 2016 dialog semiconductor table 15 : electrical c haracteristics: dac f ilter s pecifications description conditions min typ max unit pass band 0.45 * f s hz pass band ripple voice mode music mode 0.3 0.1 db stop band f s 48 khz f s = 88.2 khz or 96 khz 0.56 * f s 7 * f s 3.5 * f s hz stop band attenuation voice mode music mode 70 55 db group delay voice mode music mode f s = 88.2 khz or 96 khz 4.3 / f s 18 / f s 9 / f s s group delay variation 20 hz to 20 khz 1 s left/right channel group delay mismatch 2 s gain step size 0.75 db programmable gain - 83.25 108 db table 16 : electrical c haracteristics: high - p ass f ilter ( i nput and o utput, adc in high - p ower m ode) out_1_voice_en / in_1_voice_en out_1_voice_hpf_corner / in_1_voice_hpf_corner out_1_audio_hpf_corner / in_1_audio_hpf_corner sr s ample r ate (khz) 8 11.025 12 16 22.05 24 32 44.1 48 88.2 96 0 00 0.33 0.46 0.5 0.67 0.92 1 1.33 1.84 2 3.68 4 01 0.67 0.92 1 1.33 1.84 2 2.67 3.68 4 7.35 8 10 1.33 1.84 2 2.67 3.68 4 5.33 7.35 8 14.7 16 11 2.67 3.68 4 5.33 7.35 8 10.67 14.7 16 29.4 32 1 000 2.5 3.45 3.75 5 6.89 7.5 10 voice hpf not available for sample rates above 32 khz. 001 25 34.5 37.5 50 68.9 75 100 010 50 68.9 75 100 137.8 150 200 011 100 137.8 150 200 275.6 300 400 100 150 206.7 225 300 413.4 450 600 101 200 275.6 300 400 551.3 600 800 110 300 413.4 450 600 826.9 900 1200 111 400 551.3 600 800 1102.5 1200 1600
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 21 of 171 ? 2016 dialog semiconductor table 17 : high - p ass f ilter s ettings (adc in low - p ower m ode) in_1_voice_en out_1_voice_en in_1_voice_hpf_corner out_1_voice_hpf_corner in_1_audio_hpf_corner out_1_audio_hpf_corner . sr s ample r ate (khz) 8 11.025 12 16 22.05 24 32 44.1 48 88.2 96 0 00 0.33 0.46 0.5 0.67 0.92 1 32 khz sample rate not available in l ow - p ower mode 1.84 2 88.2 khz and 96 khz sample rates not available in l ow - p ower mode 01 0.67 0.92 1 1.33 1.84 2 3.68 4 10 1.33 1.84 2 2.67 3.68 4 7.35 8 11 2.67 3.68 4 5.33 7.35 8 14.7 16 1 000 2.5 in low - power mode, the voice hpf is only available at a sample rate of 8 khz 001 25 010 50 011 100 100 150 101 200 110 300 111 400 table 18 : electrical c haracteristics: 5 - b and equalizer fs (khz) cente r f requency (hz) a t p rogrammed s etting band 1 band 2 band 3 band 4 band 5 8 0 99 493 1528 4000 11.025 0 136 680 2106 5512 12 0 148 740 2293 6000 16 0 96 440 2128 8000 22.05 0 133 607 2933 11025 24 0 145 660 3191 12000 32 0 95 418 1797 16000 44.1 0 131 576 2386 22050 48 0 143 627 2596 24000 88.2 not available 96
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 22 of 171 ? 2016 dialog semiconductor figure 4 : 5 - b and equalizer r esponse at 48 khz table 19 : pll m ode description conditions min typ max unit mclk input jitter absolute jitter (rms) ( note 1 ) 540 ps mclk input frequency normal mode 2 54 mhz srm tracking range dai slave mode wclk frequency variation - 4 4 % srm tracking rate dai slave mode wclk drift rate 54 ppm/s note 1 jitter in the 100 hz to 40 khz band table 20 : bypass m ode description conditions min typ max unit mclk input jitter absolute jitter (rms) ( note 1 ) 540 ps mclk input frequency f s = 11.025, 22.05, 44.1, 88.2 khz f s = 8, 12, 16, 24, 32, 48, 96 khz 11.2896 12.288 mhz note 1 jitter in the 100 hz to 40 khz band table 21 : tone g enerator description conditions min typ max unit single - tone frequency f s = 8, 12, 16, 24, 32, 48, 96 khz f s = 11.025, 22.05, 44.1, 88.2 khz 1 1 12000 11025 hz single - tone frequency step f s = 8, 12, 16, 24, 32, 48, 96 khz f s = 11.025, 22.05, 44.1, 88.2 khz 0.18 0.17 hz
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 23 of 171 ? 2016 dialog semiconductor description conditions min typ max unit dual - tone modulation frequency a 697 770 852 941 hz dual - tone modulation frequency b 1209 1336 1477 1633 hz output signal level 0 dbfs on/off pulse duration 10 2000 ms on/off pulse step size 10 ms to 200 ms duration 200 ms to 2000 ms duration 10 50 ms on/off pulse repeat programmable continuous 1, 2, 3, 4, 5, 6 cycles 8 digital i nterfaces table 22 : i/o c haracteristics parameter description conditions min typ max unit v ih scl, sda, mclk, bclk, wclk, datin, datout , ad input high voltage 0.7 * v dd_io v v il scl, sda, mclk, bclk, wclk, datin, datout input low voltage 0.3 * v dd_io v v ol sda , nirq output low voltage i o ut = 3 ma 0.24 v v oh dmic1clk output high voltage 0.7 * v micbias1 v ol dmic1clk output high voltage 0.3 * v micbias1 v ih dmic1in input high voltage 0.7 * v micbias1 v il dmic1in input low voltage 0.3 * v micbias1 v oh dmic2clk output high voltage 0.7 * v micbias2 v ol dmic2clk output low voltage 0.3 * v micbias2 v ih dmic2in input high voltage 0.7 * v micbias2 v il dmic2in input low voltage 0.3 * v micbias2
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 24 of 171 ? 2016 dialog semiconductor figure 5 : i 2 c b us t iming table 23 : i 2 c c ontrol b us (vdd_io = 1.8 v) parameter description conditions min typ max unit bus free time stop to start 500 ns bus line capacitive load 150 pf standard/fast m ode scl clock frequency 0 1000 khz start condition setup time 260 ns sth start condition hold time 260 ns clkl scl low time 500 ns clkh scl high time 260 ns scl rise/fall time input requirement 1000 ns sda rise/fall time input requirement 300 ns dst sda setup time 50 ns dht sda hold time 0 ns tss stop condition setup time 260 ns high - s peed m ode scl clock frequency 0 3400 khz start condition setup time 160 ns sth start condition hold time 160 ns clkl scl low time 160 ns clkh scl high time 60 ns scl rise/fall time input requirement 160 ns sda rise/fall time input requirement 160 ns dst sda setup time 10 ns dht sda hold time 0 ns tss stop condition setup time 160 ns s c l s d a s t h c l k l c l k h d s t t s s d h t
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 25 of 171 ? 2016 dialog semiconductor figure 6 : dai t iming d iagram note diagram shown is valid for all modes except dsp. for dsp mode the bclk signal is inverted table 24 : dai t iming ( i 2 s / dsp in master/ s lave m ode) parameter description conditions (vdd_io = 1.8 v) min typ max unit input impedance dc impedance > 10 m? 300 1.0 2.5 ? pf t bclk period 75 ns tr bclk rise time 8 ns tf bclk fall time 8 ns thc bclk high period 40 % 60 % t tlc bclk low period 40 % 60 % t tdcw bclk to wclk delay - 30 % +30 % t tdcd bclk to datout delay - 30 % +30 % t thw wclk high time dsp mode 100 % t non - dsp mode word length ( note 1 ) t tlw wclk low time dsp mode 100 % t non - dsp mode word length ( note 2 ) t tsw wclk setup time slave mode 7 ns thw wclk hold time slave mode 2 ns tsd datin setup time 7 ns thd datin hold time 2 ns tdwd datout to wclk delay datout is synchronized to bclk note 1 wclk must be high for at least the word length number of bclk periods note 2 wclk must be low for at least the word length number of bclk periods t t l c t h c b c l k d a t i n t f t s d d a t o u t w c l k t r t d c w t d c d t d w d t h d t s w t h w
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 26 of 171 ? 2016 dialog semiconductor 9 functional d escription da7217 is a high - performance, low - power audio codec optimized for use in headsets or wearable devices. it contains two analog microphone - to - adc and/or up to four digital microphone - to - input filter paths, and a dai for input and output. da7217 has differential headphone outputs for use inside headset devices, offerin g excellent left to right channel separation and common mode noise rejection. the other chip in this family, the da7218, has single - ended headphone outputs, and has been designed with headphone - detect for use in accessories. the digital engine input includ es a high pass filter, automatic level control (alc), and level detection. the output stage has a high pass filter, a 5 - band eq, and a 5 - stage biquad filter. the digital engine also has a dynamic range extension (dre) block, and a tone generator that suppo rts dual tone multi - frequency (dtmf). the flexible digital mixer allows any or all of the seven inputs (four input filters, the tone generator, and dai left and right inputs) to be routed to any or all of the six digital outputs (left and right output filt ers, and dai outputs). there is an independently programmable gain on each of the 42 possible paths. 9.1 device o peration 9.1.1 power m odes the da7217 codec has two operating modes: standby C the device is asleep with all internal circuits disabled, but all register states are retained. active C the device is awake and ready to perform audio functions. blocks can be enabled as required. 9.1.1.1 standby m ode in standby mode, both the reference voltage generator and the reference oscillator are shut down so no audio functions are possible. all audio paths must be shut down before entering standby mode ( system_active = 0), as the transition to standby mode is immediate and is not pop - free. 9.1.1.2 active m ode to put the device in active mode, write system_active = 1. on entering active mode, the reference voltage generator and reference o scillator are automatically enabled. 9.2 input p aths 9.2.1 microphone i nputs the da7217 analog inputs consist of two independent signal chains, each including two amplifiers and an adc as shown in figure 7 .
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 27 of 171 ? 2016 dialog semiconductor figure 7 : analog i nputs b lock d iagram the two microphone amplifiers can be configured in fully differential mode for improved common - mode noise rejection pseudo - differential mode single - ended mode (mic1|2_p or mic1|2_n) all configurations are illustrated in figure 8 . digital microphone connection details are described in section 9.2.1.3 . 9.2.1.1 microphone b iases the da7217 codec has two independently controlled microphone bias outputs. low n oise ( n ormal) m ode each bias output can be independently programmed from 1.6 v to 3.0 v in 0.2 v steps using micbias_1_level and micbias_2_level in micbias_ctrl . each microphone bias level can only be changed while the associated micbias circuit is disabled ( micbias_1_en = 0 for micbias1 or micbias_2_en = 0 for micbias2). low - p ower m ode both microphone bias circuits can also be used as low - power voltage sources optimized for always - on microphones. in low - power mode the output voltage is fixed at 1.2 v. l ow - power mode is enabled by setting the micbias_1_lp_mode = 1 in the micbias_ctrl register. micbias1 is enabled by setting micbias_1_en = 1. the second microphone bias circuit (micbias2) is controlled in the same way. low - power mode can only be changed while the micbias circuits are disabled ( micbias_1_en = 0 for low - power mode on micbias1, and micbias_2_en = 0 for low - power mode on micbias2). table 25 : microphone b ias s ettings micbias_1_level micbias_2_level output v oltage in l ow - n oise m ode micbias_1|2 _lp_mode = 0 (v) output v oltage in l ow - p ower m ode micbias_1|2_lp_mode = 1 (v) 000 1.6 1.2 001 1.8 010 2.0 011 2.2 100 2.4 101 2.6 110 2.8 111 3.0 t o a d c 2 l f i l t e r a d c 1 a d c 2 t o a d c 1 l f i l t e r m i c _ 1 _ a m p ? 6 : + 6 : + 3 6 d b m i x i n _ 1 _ a m p ? 4 . 5 : + 1 . 5 : + 1 8 d b m i c _ 2 _ a m p ? 6 : + 6 : + 3 6 d b m i x i n _ 2 _ a m p ? 4 . 5 : + 1 . 5 : + 1 8 d b m i c 1 _ n m i c 1 _ p m i c 2 _ n m i c 2 _ p
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 28 of 171 ? 2016 dialog semiconductor 9.2.1.2 microphone a mplifier figure 8 : analog m icrophone c onfigurations the configuration of the first microphone amplifier ( mic_1_ctrl ) is specified using mic_1_amp_in_sel . it is enabled by setting mic_1_amp_en = 1 , and is muted by setting mic_1_amp_mute_en = 1. the gain of the amplifier can be set in the range of C 6 db to +36 db in 6 db steps using mic_1_amp_gain (see table 26 : ). the second microphone amplifier ( mic_2_ctrl ) is controlled in the same way. table 26 : mic_1_gain and mic_2_gain g ain s ettings mic_1_amp_gain mic_2_amp_gain amplifier g ain (db) 000 - 6 001 0 010 6 011 12 100 18 101 24 110 30 111 36 9.2.1.3 digital m icrophones the da7217 can support up to four digital microphones by reusing the mic1_p and mic_2p pins as clock outputs, and the mic1_n and mic_2n pins as digital data inputs. the io voltage level of dmic1 is set by the voltage present on micbias1 and the io voltage level of d mic2 is set by the voltage present on micbias2. this voltage can be either an output of the micbias ldo or, for minimum power consumption, the io voltage of the dmic can be connected as an input on the appropriate micbias pin. the first dmic input is contr olled using the dmic_1_ctrl register. the left channel is enabled using dmic_1l_en and the right channel using dmic_1r_en . the dmic clock rate can be set to either 3 mhz or 1.5 mhz using dmic_1_clk_rate . dmic_1 data is sampled on both the rising and the falling edges of the dmic clock. the register field dmic_1_data_sel determines which of the rising and the falling edges corresponds to the left channel, and which to the right. the register field dmic_1_samplephase controls whether the sample point for the dmic data is on the dmicclck edges ( dmic_1_samplephase = 0) or at the midpoint between the dmicclck edges ( dmic_1_samplephase = 1). m i c b i a s 1 | 2 m i c 1 | 2 _ p m i c 1 | 2 _ n m i c b i a s 1 | 2 m i c 1 | 2 _ p m i c 1 | 2 _ n m i c b i a s 1 | 2 m i c 1 | 2 _ p ( a ) d i f f e r e n t i a l ( b ) p s e u d o - d i f f e r e n t i a l ( c ) s i n g l e - e n d e d m i c 1 | 2 _ n
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 29 of 171 ? 2016 dialog semiconductor the second dmic input is controlled in the same way using dmic_2_ctrl . table 27 : digital m icrophone c ontrol b its function register b its bit s etting 0 1 digital microphone enable/disable dmic_1r_en dmic_1l_en dmic_2l_en dmic_2r_en dmic is disabled dmic is enabled digital microphone clock rate dmic_l_clk_rate dmic_2_clk_rate 3 mhz 1.5 mhz digital microphone sample phase dmic_1_samplephase dmic_2_samplephase data sa mpled on the clock edges data sampled between the clock edges digital microphone left/right data selection dmic_1_data_sel dmic_2_data_sel rising edge = left falling edge = right rising edge = right falling edge = left 9.2.1.4 input a mplifiers the two input amplifiers provide an additional gain stage between the microphone amplifiers (see section 9.2.1.2 and figure 7 ) and the adc inputs. the input amplifier ( mixin_1_ctrl ) is enabled by se tting mixin_1_amp_en = 1. the gain can be set in the range of C 4.5 db to +18 db in 1.5 db steps using mixin_1_gain . it is recommended that g ain updates be ramped through all intermediate values by setting mixin_1_amp_ramp_en = 1. this ramp setting overrides the settings of mixin_1_amp_zc_en . as an alternative to ze ro - cross synchronization , gain updates can be synchronized with signal zero - crossings by setting mixin_1_amp_zc_en = 1. if no zero - crossing is detected with in the timeout period of approximately 100 ms, the update is applied unconditionally. the amplifier can be muted using mixin_1_amp_mute_en .the single inpu t to the first amplifier can be deselected by setting mixin_1_mix_sel = 0. the second input amplifier ( mixin_2_ctrl ) is controlled in the same manner as mixin_1_ctrl . table 28 : mixin_1_gain and mixin_2_gain g ain s ettings mixin_1_amp_gain mixin_2_amp_gain amplifier g ain (db) 0000 - 4.5 0001 - 3.0 0010 - 1.5 0011 0.0 0100 1.5 0101 3.0 0110 4.5 0111 6.0 1000 7.5 1001 9.0 1010 10.5
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 30 of 171 ? 2016 dialog semiconductor mixin_1_amp_gain mixin_2_amp_gain amplifier g ain (db) 1011 12.0 1100 13.5 1101 15.0 1110 16.5 1111 18.0 9.2.2 analog to d igital c onverters the da7217 codec contains the stereo audio analog to digital converters (adcs). these can run either in low - power mode for always - on applications, or in high performance mode for other applications. each adc is automatically enabled whenever the input filters are e nabled and digital microphones are not enabled. not all sample rates are supported in all modes. table 29 describes which sample rates are supported in each mode. table 29 : supported s ample r ates in d ifferent m odes sample r ate (khz) low power m ode adc_lp_mode = 1 normal m ode adc_lp_mode = 0 voice_en = 1 voice_en = 0 voice_en = 1 voice_en = 0 8.0 supported supported supported supported 11.025/12.0 not supported supported supported supported 16.0 not supported supported supported supported 22.050/24.0 not supported supported supported supported 32.0 not supported not supported supported supported 44.100/48.0 not supported supported not supported supported 88.200/96.0 not supported not supported not supported supported 9.2.2.1 high p erformance m ode in normal (high performance) mode ( adc_lp_mode = 0), the adcs are clocked at a fixed rate of either 3.072 mhz or 2.8224 mhz, depending on the required input sample rate (sr1). 9.2.2.2 low - p ower m ode the low - power mode of operation is designed for a lways - on applications. in low - power mode, the adcs are clocked at half the normal (high - performance) rate, that is, at either 1.5360 mhz or 1.4112 mhz. low - power mode is set in both adcs by setting adc_lp_mode = 1. in this mode there is a small increase in distortion. 9.2.2.3 anti - a lias f ilters the anti - alias filters at the front - end of the adc are enabled by default. the anti - alias filters can be disabled to save power by setting adc_1_aaf_en = 0 for channel 1, or adc_2_aaf_en = 0 for channel 2.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 31 of 171 ? 2016 dialog semiconductor 9.3 digital e ngine the da7217 chip contains a digital engine that performs the signal processing and also provides overall system control. within the digital engine, all seven po ssible input signals can be mixed and output to any of the six possible outputs. see figure 9 for a visual representation of this. the output signals f rom either of the two adcs or any of the four digital microphones are passed to the input filter block. the filter block includes a high - pass filter for wind noise suppression, an automatic level control, and input level detection. the signals from the inp ut filters are sent to the digital mixer where they can be combined with signals from the tone generator and the dai , and routed to the output filters and the dai. the output filters contain a high - pass filter for dc offset removal, a fixed 5 - band equalize r , and a flexible 5 - stage biquad filter to adjust the sound of the output signals. there is also a sidetone path that can take one signal from either the adcs or the digital microphones and perform filtering using three biquad sections before passing the s ignal straight to the output filters. the digital engine contains a dre module that can be used to automatically swap analog and digital gains on the input and output signal paths in order to maximize the dynamic range of the codec. finally a system controller module is included to ensure correct sequencing of the events required to bring up and shut down signal paths without creating pops and clicks. figure 9 : digital e ngine b lock d iagram d i g i t a l e n g i n e i n p u t f i l t e r s @ s r 1 ( h i g h - p a s s , a l c , l e v e l d e t e c t ) o u t p u t f i l t e r s @ s r 2 ( h i g h - p a s s , 5 - b a n d e q , 5 b i q u a d ) s y s t e m c o n t r o l l e r d y n a m i c r a n g e e x t e n s i o n 4 1 2 2 t o n e g e n e r a t o r 3 b i q u a d s i d e t o n e f i l t e r @ 4 s r 2 i n p u t s e l e c t i o n 4 a d c 1 / d m i c 1 l d m i c 1 r a d c 2 / d m i c 2 l d m i c 2 r d i g i t a l a u d i o i n t e r f a c e ( d a i ) d a c l d a c r
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 32 of 171 ? 2016 dialog semiconductor 9.3.1 input p rocessing 9.3.1.1 input f ilters figure 10 : input f ilters b lock d iagram there are two stereo pairs of input filters ( in_1l_filter_ctrl and in_1r_filter_ctrl , and in_2l_filter_ctrl and in_2r_filter_ctrl ) that can be used to process signals from either the two mono adcs, or from the two stereo digital microphone inputs. the input (adc or dmic) to the input filters is selected using dmic_1l_en (or dmic_1r_en ) and dmic_2l_en (or dmic_2r_en ). if an adc input is selected, the analog part of the adc is enabled whenever the dmic has not been enabled and the connected input filter has been enabled using one of the filter enabling bits ( in_1l_filter_en , in_1r_filter_en , in_2l_filter_en , and in_2r_filter_en ). left and right channels of the two input filters can be controlled independently. the left channel of the first input filter is enabled using in_1l_filter_en . it is muted using in_1l_mute_en and gain - ramping is enabled using in_1l_ramp_en . the gain can be set in the range of C 83.25 db to +12 db in +0.75 db steps using in_1l_digital_gain . the right channel and the second input filter channels are all controlled in the same way. c i c c i c i n _ 1 l _ f i l t e r i n _ 1 r _ f i l t e r f s d m 4 f s 1 2 f s 1 f s 1 c i c c i c i n _ 2 l _ f i l t e r i n _ 2 r _ f i l t e r f s d m 4 f s 1 2 f s 1 f s 1 a d c 1 / d m i c 1 l d m i c 1 r d m i c 2 r a d c 2 / d m i c 2 l i n 1 l i n 1 r i n 2 l i n 2 r d i g i t a l e n g i n e i n p u t s e l e c t i o n
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 33 of 171 ? 2016 dialog semiconductor ta ble 30 : in_filt d igital g ain s ettings in_1l_digital_gain , in_1r_digital_gain , in_2l_digital_gain in_2r_digital_gain setting gain (db) in_1l_digital_gain , in_1r_digital_gain , in_2l_digital_gain , in_2r_digital_gain setting gain (db) in_1l_digital_gain , in_1r_digital_gain , in_2l_digital_gain , in_2r_digital_gain setting gain (db) binary hex binary hex binary hex 0000000 0x00 - 83.25 0101011 0x2b - 51 1010110 0x56 - 18.75 0000001 0x01 - 82.5 0101100 0x2c - 50.25 1010111 0x57 - 18 0000010 0x02 - 81.75 0101101 0x2d - 49.5 1011000 0x58 - 17.25 0000011 0x03 - 81 0101110 0x2e - 48.75 1011001 0x59 - 16.5 0000100 0x04 - 80.25 0101111 0x2f - 48 1011010 0x5a - 15.75 0000101 0x05 - 79.5 0110000 0x30 - 47.25 1011011 0x5b - 15 0000110 0x06 - 78.75 0110001 0x31 - 46.5 1011100 0x5c - 14.25 0000111 0x07 - 78 0110010 0x32 - 45.75 1011101 0x5d - 13.5 0001000 0x08 - 77.25 0110011 0x33 - 45 1011110 0x5e - 12.75 0001001 0x09 - 76.5 0110100 0x34 - 44.25 1011111 0x5f - 12 continuing in 0.7 5 db steps until 0011110 0x1e - 60.75 1001001 0x49 - 28.5 1110100 0x74 3.75 0011111 0x1f - 60 1001010 0x4a - 27.75 1110101 0x75 4.5 0100000 0x20 - 59.25 1001011 0x4b - 27 1110110 0x76 5.25 0100001 0x21 - 58.5 1001100 0x4c - 26.25 1110111 0x77 6 0100010 0x22 - 57.75 1001101 0x4d - 25.5 1111000 0x78 6.75 0100011 0x23 - 57 1001110 0x4e - 24.75 1111001 0x79 7.5 0100100 0x24 - 56.25 1001111 0x4f - 24 1111010 0x7a 8.25 0100101 0x25 - 55.5 1010000 0x50 - 23.25 1111011 0x7b 9 0100110 0x26 - 54.75 1010001 0x51 - 22.5 1111100 0x7c 9.75 0100111 0x27 - 54 1010010 0x52 - 21.75 1111101 0x7d 10.5 0101000 0x28 - 53.25 1010011 0x53 - 21 1111110 0x7e 11.25 0101001 0x29 - 52.5 1010100 0x54 - 20.25 1111111 0x7f 12 0101010 0x2a - 51.75 1010101 0x55 - 19.5 9.3.1.2 high - p ass f ilter the da7217 contains two stereo input high - pass filters (hpfs). the first filter is controlled using in_1_hpf_filter_ctrl and in_2_hpf_filter_ctrl to remove any dc components from the incoming audio. this filter op erates at all sample rates. for this first filter, in music mode in_1_voice_en must be set to 0 and the hpf corner frequency is set using in_1_audio_hpf_corner . a second high pass filter is available when the sample rate is 32 khz or lower for voice filtering . this filter is controlled using in_1_voice_en and in_2_voice_en . it has a wider range of corner frequ encies to help remove low frequency artefacts such as wind noise. in voice mode, in_1_voice_en must = 1 in which case the hpf corner frequency is set using in_1_voice_en . the value of th e hpf corner frequency also depends on the input sample rate (sr1) as shown in table 31 (adc in high power mode) and table 32 (adc in low power mode). note that when operating in adc low power mode ( adc_lp_mode = 1), the voice filter is only available at a sample rate of 8 khz. similarly the audio filter will not operate at sample rates of 32 khz, 88.2 khz, or 96 khz. the sample rates available in the different adc power modes are summarized in table 31 for the adc in high - power mode ( adc_lp_mode = 0), and table 32 for the adc in low - power mode ( adc_lp_mode = 1).
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 34 of 171 ? 2016 dialog semiconductor table 31 : input h igh - p ass f ilter s ettings (adc in h igh - p ower m ode) in_1_voice_en out_1_voice_en in_1_voice_hpf_corner out_1_voice_hpf_corner in_1_audio_hpf_corner out_1_audio_hpf_corner sample r ate (khz) 8 11.025 12 16 22.05 24 32 44.1 48 88.2 96 0 00 0.33 0.46 0.5 0.67 0.92 1 1.33 1.84 2 3.68 4 01 0.67 0.92 1 1.33 1.84 2 2.67 3.68 4 7.35 8 10 1.33 1.84 2 2.67 3.68 4 5.33 7.35 8 14.7 16 11 2.67 3.68 4 5.33 7.35 8 10.67 14.7 16 29.4 32 1 000 2.5 3.45 3.75 5 6.89 7.5 10 voice hpf not available for sample rates above 32 khz. 001 25 34.5 37.5 50 68.9 75 100 010 50 68.9 75 100 137.8 150 200 011 100 137.8 150 200 275.6 300 400 100 150 206.7 225 300 413.4 450 600 101 200 275.6 300 400 551.3 600 800 110 300 413.4 450 600 826.9 900 1200 111 400 551.3 600 800 1102.5 1200 1600 table 32 : input h igh - p ass f ilter s ettings (adc in l ow - p ower m ode) in_1_voice_en out_1_voice_en in_1_voice_hpf_corner out_1_voice_hpf_corner in_1_audio_hpf_corner out_1_audio_hpf_corner . sample rate (khz) 8 11.025 12 16 22.05 24 32 44.1 48 88.2 96 0 00 0.33 0.46 0.5 0.67 0.92 1 32 khz sample rate not available in low - power mode 1.84 2 88.2 khz and 96 khz sample rates not available in low - power mode 01 0.67 0.92 1 1.33 1.84 2 3.68 4 10 1.33 1.84 2 2.67 3.68 4 7.35 8 11 2.67 3.68 4 5.33 7.35 8 14.7 16 1 000 2.5 in low - power mode, the voice hpf is only available at a sample rate of 8 khz 001 25 010 50 011 100 100 150 101 200 110 300 111 400
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 35 of 171 ? 2016 dialog semiconductor 9.3.1.3 automatic l evel c ontrol for improved sound recordings of signals with a large volume range, the da7217 offers a fully - configurable automatic recording level control (alc) for microphone inputs. this is enabled via the alc_ctrl1 , and can be enabled independently on any of the four input channels. the alc monitors the digital signal after the adc and adjusts the microphones analog and digital gain to maintain a constan t recording level, regardless of the analog input signal level. operation of alc is illustrated in figure 11 . when the input signal volume is high, th e alc system will reduce the overall gain until the output volume is below the specified maximum value. when the input signal volume is low, the alc will increase the gain until the output volume increases above the specified minimum value. if the output s ignal is within the desired signal level (between the specified minimum and maximum levels), the alc does nothing. the minimum and the maximum thresholds that trigger a gain change of the alc are programmed by the alc_thre shold_min and alc_threshold_max controls. figure 11 : principle of o peration of the alc the alc can operate in two modes; digital - only mode and hybrid ( combined a nalog and digital gain ) mode. in digital - o nly mode only the digital gain in the adc is altered. note that although the alc is controlling the gain, it does not modify any of the registers in_1l_digital_gain , in_1r_digital_gain , in_2l_digital_gain , or in_2r_digital_gain . these registers are ig nored while the alc is in operation. the minimum and maximum levels of digital gain that can be applied by the alc are controlled using alc_atten_max and alc_gain_max . when using analog microphones, hybrid mode can be enabled using alc_sync_mode . see section 9.3.1.5 for details on alc calibration in hybrid mode. in hybrid mode, the total gain is made u p of an analog gain ( which is applied to the microphone amplifiers ) and a digital gain, ( which is implemented in the filtering stage ) .the alc block monitors and controls the gain of the microphone and the adc. note that although the alc is controlling the gain, it does not modify any of the registers mixin_1_amp_gain or mixin_2_amp_gain , nor does it modify any of the digital gain registers in_1l_digital_gain , in_1r_digital_gain , in_2l_digital_gain , or in_2r_digital_gain . these registers are ignored while the alc is in operation. a l c i n p u t a l c g a i n a l c o u t p u t a l c m a x l e v e l a l c m i n l e v e l r e l e a s e t i m e a t t a c k t i m e
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 36 of 171 ? 2016 dialog semiconductor similarly the minimum and maximum levels of analog gain are controlled by alc_ana_gain_min and alc_ana_gain_max . the rates at which the gain is changed are d efined by the attack and decay rates in register alc_ctrl2 . when attacking, the gain decreases with alc_attack rate. when decaying, the gain increases with alc_release rate. hybrid mode should be used wh enever analog microphones are being used. digital - o nly mode should be used whenever digital microphones are being used. the hold - time is defined by alc_hold in the alc_ctrl3 register. this controls the length of time that the system maintains the current gain level before starting to decay. this prevents unw anted changes in the recording level when there is a short - lived spike in input volume, for example when recording speech. typically the attack rate should be much faster than the decay rate. to avoid clipping i t is necessary to reduce rapidly increasin g waveforms as quickly as possible, whereas fast release times will result in the signal appearing to pump. the alc also has an anti - clip function that applies a very fast attack rate when the input signal is close to full - scale. this prevents clipping o f the signal by reducing the signal gain at a faster rate than would normally be applied. the anti - clip function is enabled using alc_anticlip_en , and the trigger threshold is set in the range 0.034 db/ f s to 0.272 db/ f s using alc_anticlip_step . a recording noise - gate feature is provided to avoid increasing the gain of the channel when there is no signal, or when only a noise signal is present. boosting a signal on which only noise is present is known as noise pumping, the noise - gate prevents this. whenever the level of the input signal drops below the noise threshold configured in alc_noise , the channel gain remains constant. figure 12 : attack, d elay and h old p arameters 9.3.1.4 input d ynamic r ange e xtension when using analog microphones, t he input dynamic range extension (dre) automatically swaps the analog and d igital gains to maximize the dynamic range at all times. m a x m i n a t k d c y h l d i n p u t s i g n a l g a i n l e v e l a t k r a t e d c y r a t e t i m e t i m e
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 37 of 171 ? 2016 dialog semiconductor the dre block, like the hybrid - mode alc, controls both the analog micamp gain and the digital gain. however it applies equal and opposite adjustments to analog and digital gains so that total path gain remains constant while the input dynamic range is increased. dre can be enabled for either or both adcs using the ags_enable bits. the trigger level f or the dre can be set in the range of C 90 db to 0 db in 6 db steps using ags_trigger . the maximum attenuation that can be applied by the dre can be set in the range of 0 db to 36 db in 6 db steps using ags_att_max . there is also a timeout of 0.1 s that can be enabled using ags_timeout_en , and a mechanism to prevent clipping that can be enabled using ags_anticlip_en . note that t he input dre cannot be used with alc. only one of these functions can be used at any one time . 9.3.1.5 a utomatic l evel c ontrol and i nput d ynamic r ange e xtension c alibration when using the alc in hybrid mode or when using the input dre, the dc offset at the output of the micamps must be compensated for to prevent audible effects when the gains are changed. this compensation is performed automatically if the following sequence is followed: 1. enable the required micamp(s) unmuted . 2. mute the m icamp(s). note that it is important to enable the micamps unmuted before using them in this step . 3. enable the required mixin_1|2_amp(s) and adc(s) unmuted . 4. enable the dai or set the pc to freerun mode . 5. set calib_auto_en to 1 to start the calibration. this bit will clear to 0 once the calibration is complete . 6. set calib_offset_en to 1 . 7. enable the alc in hybrid mode or the dre. note that alc and input dre are mutually exclusive, and only one should be enabled at any one time . 8. unmute the micamp(s) . 9.3.1.6 level d etection level detection can be used to signal to the host processor (via the nirq pin) that the input signal has exceeded the threshold level determined by lvl_det_level . level detection can be enabled on any or all of the four input filter channels using the lvl_det_en bits. the threshold used for level detection ca n be programmed in the range of 1/128 full - scale to full - scale using lvl_det_level . 9.3.2 sidetone p rocessing there is a mono, low - latency filter channel between inputs and outputs for implementing a sidetone path. the input signal to any one of the four input channels (from dmic or adc) can also be routed to the sidetone channel using sidetone_in_select . the output from the sidetone channel can be added to left or right (or both) output filters using outfilt_st_1l_src and outfilt_st_1r_src . the sidetone filter itself contains a three - stage biquad filter that can be used to provide custom filtering of the input signal. the biquad filter also has a programmable gain stage to adjust the level of the sidetone signal. this is controlled by sidetone_gain , and provides gain in the range - 42 db to +4.5 db in 1.5 db steps. the sidetone path is enabled using sidetone_filter_en . and muted using sidetone_mute_en . figure 13 : sidetone f ilter b lock d iagram c i c 3 b i q u a d g a i n s t a g e s i d e t o n e _ f i l t e r f s d m 4 f s 2
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 38 of 171 ? 2016 dialog semiconductor the sidetone biquad filter can be used to provide custom filtering, for example microphone frequency response. each of the three biquad stages has five 16 - bit coefficients a0, a1, a2, b1 and b2 (see figure 21 ). for the three stages, the coefficients are numbered a00, a01 etc. as shown in figure 14 : figure 14 : cascade of t hree b iquad f ilter s tages the coefficients are stored using 8 - bit registers in a dedicated address space. they are programmed by first writing the coefficient data value to sidetone_biq_3stage_data and then the coefficient address to sidetone_biq_3stage_addr . the address location for each of the coefficients is described in table 33 : each of the 16 - bit coefficients is twos co mplement values that are programmed in the range of - 2 (0x8000) to +2 (0x7fff). it is the responsibility of the user to ensure that filter transfer function corresponding to the programmed coefficients is stable. table 33 : sidetone 3 - s tage b iquad f ilter c oefficient a ddress m ap address name description 0x00 sidetone_biq_a00_lo lower byte of a00 coefficient for first sidetone biquad stage 0x01 sidetone_biq_a00_hi upper byte of a00 coefficient for first sidetone biquad stage 0x02 sidetone_biq_a01_lo lower byte of a01 coefficient for first sidetone biquad stage 0x03 sidetone_biq_a01_hi upper byte of a01 coefficient for first sidetone biquad stage 0x04 sidetone_biq_a02_lo lower byte of a02 coefficient for first sidetone biquad stag e 0x05 sidetone_biq_a02_hi upper byte of a02 coefficient for first sidetone biquad stage 0x06 sidetone_biq_b01_lo lower byte of b01 coefficient for first sidetone biquad stage 0x07 sidetone_biq_b01_hi upper byte of b01 coefficient for first sidetone biquad stage 0x08 sidetone_biq_b02_lo lower byte of b02 coefficient for first sidetone biquad stage 0x09 sidetone_biq_b02_hi upper byte of b02 coefficient for first sidetone biquad stage 0x0a sidetone_biq_a10_lo lower byte of a10 coefficient for second sidetone biquad stage 0x0b sidetone_biq_a10_hi upper byte of a10 coefficient for second sidetone biquad stage 0x0c sidetone_biq_a11_lo lower byte of a11 coefficient for second sidetone biquad stage 0x0d sidetone_biq_a11_hi upper byte of a11 coefficient for first sidetone biquad stage 0x0e sidetone_biq_a12_lo lower byte of a12 coefficient for first sidetone biquad stage 0x0f sidetone_biq_a12_hi upper byte of a12 coefficient for first sidetone biquad stage 0x10 sidetone_biq_b11_lo lower byte of b11 coef ficient for first sidetone biquad stage 0x11 sidetone_biq_b11_hi upper byte of b11 coefficient for second sidetone biquad stage 0x12 sidetone_biq_b12_lo lower byte of b12 coefficient for second sidetone biquad stage 0x13 sidetone_biq_b12_hi upper byte of b12 coefficient for second sidetone biquad stage 0x14 sidetone_biq_a20_lo lower byte of a20 coefficient for third sidetone biquad stage 0x15 sidetone_biq_a20_hi upper byte of a20 coefficient for third sidetone biquad stage 0x16 sidetone_biq_a21_lo lower byte of a21 coefficient for third sidetone biquad stage z - 1 a 0 0 a 0 1 a 0 2 z - 1 b 0 1 b 0 2 z - 1 z - 1 z - 1 a 1 0 a 1 1 a 1 2 z - 1 b 1 1 b 1 2 z - 1 z - 1 z - 1 a 2 0 a 2 1 a 2 2 z - 1 b 2 1 b 2 2 z - 1 z - 1 x [ n ] y [ n ]
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 39 of 171 ? 2016 dialog semiconductor 0x17 sidetone_biq_a21_hi upper byte of a21 coefficient for third sidetone biquad stage 0x18 sidetone_biq_a22_lo lower byte of a22 coefficient for third sidetone biquad stage 0x19 sidetone_biq _a22_hi upper byte of a22 coefficient for third sidetone biquad stage 0x1a sidetone_biq_b21_lo lower byte of b21 coefficient for third sidetone biquad stage 0x1b sidetone_biq_b21_hi upper byte of b21 coefficient for third sidetone biquad stage 0x1c sidetone_biq_b22_lo lower byte of b22 coefficient for third sidetone biquad stage 0x1d sidetone_biq_b22_hi upper byte of b22 coefficient for third sidetone biquad stage
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 40 of 171 ? 2016 dialog semiconductor 9.3.3 tone g enerator the tone generator contains two independent sine wave generators (swgs). each swg can generate a sine wave at a frequency (freq) from approximately 1 hz to 12 khz according to the programmed 16 - bit value: freq[15:0] = 2 16 * f swg /12000, for sr2 = (8, 12, 16, 24, 32, 48,96) khz freq[15:0] = 2 16 * f swg /11025, for sr2 = (11 .025, 22.05, 44.1, 88.2) khz the da7217 should not be programmed with frequency greater than the nyquist frequency. nyquist frequency = sr2/2 for the first swg, the freq value is stored in two 8 - bit registers as freq1_u = freq[15:8] and freq1_l = freq[7:0]. the second swg frequency is programmed in the same w ay using freq2_u and freq2_l . the output of the tone gen erator can come from either of the swgs, or from a combination of both of them as specified by swg_sel . in addition the tone generator can produce standard dual tone multi - frequency (dtmf) tones using the two swgs if dtmf_en = 1 and the required keypad value is programmed in dtmf_reg as shown in table 34 . table 34 : dtmf t ones c orresponding to dtmf_reg v alue the tone generator can produce 1, 2, 3, 4, 8, 16, or 32 beeps, or a continuous beep, as determined by beep_cycles . each beep has an on period from 10 ms to 2 s as programmed in beep_on_per and an off period from 10 ms to 2 s as programmed in beep_off_per . the tone generator is started by setting the start_stopn bit, and is halted by clearing this bit. if start_stopn is cleared, the tone generator stops at the completion of the current beep cycle or at the next zero - cross if the number of beeps is set to continuous ( beep_cycles = 110 or = 111). the start_stopn bit is automatically cleared once the programmed number of beep cycles has been completed. 9.3.4 the tone generator c an also be used to produce an s - ramp by setting swg_sel to 0x03. system c ontroller the system control ler (sc) automates the sequencing of the multiple bloc ks required to set up one or more particular audio paths. it is an optional feature, and operates by performing register writes with optimal sequencing and timing, thus eliminating pops and clicks. the inputs are controlled using system_modes_input , and the outputs are controlled using system_modes_output . writing to the mode_submit field of either of these registers will cause the system controller (sc) to process both input and output paths. when the sc is activated by asserting the mode_submit field, all of the register - writes that are required by the selected sub systems are performed automatically. each sub - system is brought up, or down, in the correct order to avoid pops and clicks. in addition, within each sub system, the component parts are brought up in the correct pop - free and click - free sequence. swg2 freq (hz) swg1 frequency (hz) 1209 1336 1477 1633 697 0x1 0x2 0x3 0xa 770 0x4 0x5 0x6 0xb 852 0x7 0x8 0x9 0xc 941 0xe 0x0 0xf 0xd
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 41 of 171 ? 2016 dialog semiconductor 9.3.5 output p rocessing 9.3.5.1 output f ilters figure 15 : output f ilters b lock d iagram there is a stereo output filter chain that is used to process signals to be sent to the stereo dac. the signals from the digital mixer (at sr2 rate) can be processed through a high - pass filter, a fixed 5 - band equalizer and a 5 - stage biquad filter. they can also be combined with signals from the sidetone filter (at 4 * sr2 rate). left and right channels of the output filter can be controlled independently. the left channel of the output filter is enabled using out_1l_filter_en and i s muted using out_1l_mute_en . gain ramping is enabled using out_1l_ramp_en . if out_1l_subrange_en is also set, the ramping process will step though much finer gain increments . the 5 - stage biquad filter is select ed using out_1l_biq_5stage_sel . the gain of the left channel can be set in the range of - 83.25 db to +108 db in 0.75 db steps using out_1l_gain . the right channel of the output filter is controlled in the same way. 9.3.5.2 high - p ass f ilter the output high - pass filters (hpfs) are controlled using out_1_hpf_filter_ctrl . in music mode out_1_voice_en m ust be set to 0 and the hpf corner frequency is set using out_1_audio_hpf_corner . in voice mode, out_1_voice_en must be set to 1, in which case the hpf corner frequency is set using out_1_voice_hpf_corner . the value of the hpf corner frequency also depends on the output sample rate (sr2) as shown in table 35 . the right channel of the hpf is controlled in the same way. o u t _ 1 _ f i l t e r 5 b e q s d m d w a s d m d w a f s 2 2 f s 2 4 f s 2 8 f s 2 f s d m 5 b i q u a d 5 b i q u a d 5 b e q o u t _ 1 l _ b i q _ s e l o u t _ 1 r _ b i q _ s e l f r o m s i d e t o n e f r o m s i d e t o n e f r o m m i x e r t o h e a d p h o n e s
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 42 of 171 ? 2016 dialog semiconductor table 35 : output h igh - p ass f ilter s ettings (adc in high - p ower m ode) in_1_voice_en out_1_voice_hpf_corn er out_1_audio_hpf_corn er . sr1 s ample r ate (khz) 8 11.025 12 16 22.05 24 32 44.1 48 88.2 96 0 00 0.33 0.46 0.5 0.67 0.92 1 1.33 1.84 2 3.68 4 01 0.67 0.92 1 1.33 1.84 2 2.67 3.68 4 7.35 8 10 1.33 1.84 2 2.67 3.68 4 5.33 7.35 8 14.7 16 11 2.67 3.68 4 5.33 7.35 8 10.67 14.7 16 29.4 32 1 000 2.5 3.45 3.75 5 6.89 7.5 10 voice hpf not available for sample rates above 32 khz. 001 25 34.5 37.5 50 68.9 75 100 010 50 68.9 75 100 137.8 150 200 011 100 137.8 150 200 275.6 300 400 100 150 206.7 225 300 413.4 450 600 101 200 275.6 300 400 551.3 600 800 110 300 413.4 450 600 826.9 900 1200 111 400 551.3 600 800 1102.5 1200 1600 table 36 : output h igh - p ass f ilter s ettings (adc in low - p ower m ode) in_1_voice_en out_1_voice_hpf_corne r in_1_audio_hpf_corner sr1 s ample r ate (khz) 8 11.025 12 16 22.05 24 32 44.1 48 88.2 96 0 00 0.33 0.46 0.5 0.67 0.92 1 32 khz sample rate not available in low - power mode 1.84 2 88.2 khz and 96 khz sample rates not available in low - power mode 01 0.67 0.92 1 1.33 1.84 2 3.68 4 10 1.33 1.84 2 2.67 3.68 4 7.35 8 11 2.67 3.68 4 5.33 7.35 8 14.7 16 1 000 2.5 in low - power mode, the voice hpf is only available at a sample rate of 8 khz 001 25 010 50 011 100 100 150 101 200 110 300 111 400
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 43 of 171 ? 2016 dialog semiconductor 9.3.5.3 5 - b and equalizer the output filters can provide gain or attenuation in each of five separate (fixed) frequency bands using the 5 - band equalizer (eq). the equalizer , for both left and right channels, is enabled using out_1_eq_en . the gain or attenuation of the first frequency band is programmable from - 10.5 db to 12 .0 db in 1.5 db steps using out_1_eq_band1 . the other four bands are programmable in the same way using out_1_eq_band2 , out_1_eq_band3 , out_1_eq_band4 , and out_1_eq_band5 . the center or cut - off frequency of each of the five bands depends on t he output sample rate (sr2) as shown in table 37 . the 5 - band eq and the 5 - band biquad filter can be used at the same time for greater filtering contro l. table 37 : output 5 - band equalizer c entre and c ut - o ff f requencies for equalizer bands 1 and 5, the cut - off frequency depends on the gain setting. the figures quoted in this table refer to the C 1 db point with the band gain set to C 3 db sr2 (khz) cente r / cut - o ff f requency (hz) a t p rogrammed s etting band 1 c ut - o ff band 2 c ente r band 3 c ente r band 4 c ente r band 5 c ut - o ff 8 0 99 493 1528 4000 11.025 0 136 680 2106 5512 12 0 148 740 2293 6000 16 0 96 440 2128 8000 22.05 0 133 607 2933 11025 24 0 145 660 3191 12000 32 0 95 418 1797 16000 44.1 0 131 576 2386 22050 48 0 143 627 2596 24000 88.2 n/a n/a n/a n/a n/a 96 n/a n/a n/a n/a n/a note the 5 - band equalizer is only available for sample rates up to 48 khz. the frequency response of the 5 - band equalizer at sample rate of 48 khz is shown graphically in figure 16 to figure 20 : the cut - off for equalizer bands 1 and 5 is dependent on gain setting. the figures quoted in table 37 refer to the - 1 db point with the band gain set to - 3 db
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 44 of 171 ? 2016 dialog semiconductor figure 16 : equalizer f ilter b and 1 f requency r esponse at fs = 48 khz figure 17 : equalizer f ilter b and 2 f requency r esponse at fs = 48 khz figure 18 : equalizer f ilter b and 3 f requency r esponse at fs = 48 khz
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 45 of 171 ? 2016 dialog semiconductor figure 19 : equalizer f ilter b and 4 f requency r esponse at fs = 48 khz figure 20 : equalizer f ilter b and 5 f requency r esponse at fs = 48 khz 9.3.5.4 5 - s tage b iquad f ilter the stereo 5 - stage biquad filter can be used to provide more flexible filtering of the output signal than can be achieved using the 5 - band equalizer . the biquad filters can be used for the implementation of low - pass, high - pass or notch filters. the 5 - band eq and the 5 - band biquad filter can be used at the same time for greater filtering control. the biquad filter is enabled using out_1_biq_5stage_filter_en a nd can be muted using out_1_biq_5stage_mute_en . the biquad filter on each channel can be selected independently using out_1l_biq_5stage_sel and out_1r_biq_5stage_sel in the out_1l_filter_ctrl and out_1r_filter_ctrl registers.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 46 of 171 ? 2016 dialog semiconductor figure 21 : single b iquad f ilter s tage each of the five biquad stages has five 16 - bit coefficients a0, a1, a2, b1 and b2 as shown in figure 21 . for the five stages the coefficients are numbered a00, a01 and so on as shown in figure 22 . the filter sections are implemented using a direct form one architecture which implements the transfer function shown in figure 21 : figure 22 : cascade of f ive b iquad f ilter s tages the biquad filters in both left and right channels share the same set of coefficients. each of the coefficients is stored using two 8 - bit registers in a dedicated address space. all of the coefficients are programmed by first writing the coefficient data value to out_1_biq_5stage_data and then the coefficient address to out_1_biq_5stage_addr . the address location for each of the coefficients is described in table 38 . each of the 16 - bit coefficients are twos complement values that can be programmed in the ran ge of - 2 (0x8000) to +2 (0x7fff (0)). c hecks should be made to ensure that the pre - programmed coefficients result in a stable transfer filter function. the full numeric range of the coefficients is - 2 to +1.999938964843750. k e y z - 1 = d e l a y o f o n e u n i t ( i n p u t t o o u t p u t ) a n = f e e d - f o r w a r d c o e f f i c i e n t s ( r a n g e + 2 t o - 2 ) b n = f e e d b a c k c o e f f i c i e n t s ( r a n g e + 2 t o - 2 ) z - 1 a 0 a 1 a 2 z - 1 b 1 b 2 z - 1 z - 1 x [ n ] y [ n ] 2 2 1 1 2 2 1 1 0 1 4 4 3 3 ) ( ? ? ? ? ? ? ? ? ? ? ? ? ? z b z b z a z a z a z a a z h z - 1 a 0 0 a 0 1 a 0 2 z - 1 b 0 1 b 0 2 z - 1 z - 1 z - 1 a 1 0 a 1 1 a 1 2 z - 1 b 1 1 b 1 2 z - 1 z - 1 z - 1 a 2 0 a 2 1 a 2 2 z - 1 b 2 1 b 2 2 z - 1 z - 1 z - 1 a 3 0 a 3 1 a 3 2 z - 1 b 3 1 b 3 2 z - 1 z - 1 z - 1 a 4 0 a 4 1 a 4 2 z - 1 b 4 1 b 4 2 z - 1 z - 1 x [ n ] y [ n ]
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 47 of 171 ? 2016 dialog semiconductor table 38 : output 5 - s tage b iquad f ilter c oefficient a ddress m ap address out_1_biq_5s tage_addr name description 0x00 out_1_biq_a00_lo lower byte of a00 coefficient for first output biquad stage biquad filter 1 0x01 out_1_biq_a00_hi upper byte of a00 coefficient for first output biquad stage 0x02 out_1_biq_a01_lo lower byte of a01 coefficient for first output biquad stage 0x03 out_1_biq_a01_hi upper byte of a01 coefficient for first output biquad stage 0x04 out_1_biq_a02_lo lower byte of a02 coefficient for first output biquad stage 0x05 out_1_biq_a02_hi upper byte of a02 coefficient for first output biquad stage 0x06 out_1_biq_b01_lo lower byte of b01 coefficient for first output biquad stage 0x07 out_1_biq_b01_hi upper byte of b01 coefficient for first output biquad stag e 0x08 out_1_biq_b02_lo lower byte of b02 coefficient for first output biquad stage 0x09 out_1_biq_b02_hi upper byte of b02 coefficient for first output biquad stage 0x0a out_1_biq_a10_lo lower byte of a10 coefficient for second output biquad stage biquad filter 2 0x0b out_1_biq_a10_hi upper byte of a10 coefficient for second output biquad stage 0x0c out_1_biq_a11_lo lower byte of a11 coefficient for second output biquad stage 0x0d out_1_biq_a11_hi upper byte of a11 coefficient for second output biquad stage 0x0e out_1_biq_a12_lo lower byte of a12 coefficient for second output biquad stage 0x0f out_1_biq_a12_hi upper byte of a12 coefficient for second output biquad stage 0x10 out_1_biq_b11_lo lower byte of b11 coefficient for second output biquad stage 0x11 out_1_biq_b11_hi upper byte of b11 coefficient for second output biquad stage 0x12 out_1_biq_b12_lo lower byte of b12 coefficient for second output biquad stage 0x13 out_1_biq_b12_hi upper byte of b12 coefficient for second output biquad stage 0x14 out_1_biq_a20_lo lower byte of a20 coefficient for third output biquad stage biquad filter 3 0x15 out_1_biq_a20_hi upper byte of a20 coefficient for third output biquad stage 0x16 out_1_biq_a21_lo lower byte of a21 coefficient for third output biquad stage 0x17 out_1_biq_a21_hi upper byte of a21 coefficient for third output biquad stage 0x18 out_1_biq_a22_lo lower byte of a22 coefficient for third output biquad stage 0x19 out_1_biq_a22_hi upper byte of a22 coefficient for third output biquad stage 0x1a out_1_biq_b21_lo lower byte of b21 coefficient for third output biquad stage 0x1b out_1_biq_b21_hi upper byte of b21 coefficient for third output biquad stage 0x1c out_1_biq_b22_lo lower byte of b22 coefficient for third output biquad stage 0x1d out_1_biq_b22_hi upper byte of b22 coefficient for third output biquad stage 0x1e out_1_biq_a30_lo lower byte of a30 coefficient for fourth output biquad stage biquad filter 4 0x1f out_1_biq_a30_hi upper byte of a30 coefficient for fourth output biquad stage 0x20 out_1_biq_a31_lo lower byte of a31 coefficient for fourth output biquad stage 0x21 out_1_biq_a31_hi upper byte of a31 coefficient for fourth output biquad stage 0x22 out_1_biq_a32_lo lower byte of a32 coefficient for fourth output biquad stage 0x23 out_1_biq_a32_hi upper byte of a32 coefficient for fourth output biquad stage 0x24 out_1_biq_b01_lo lower byte of b31 coefficient for fourth output biquad stage
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 48 of 171 ? 2016 dialog semiconductor address out_1_biq_5s tage_addr name description 0x25 out_1_biq_b31_hi upper byte of b31 coefficient for fourth output biquad stage 0x26 out_1_biq_b32_lo lower byte of b32 coefficient for fourth output biquad stage 0x27 out_1_biq_b32_hi upper byte of b32 coefficient for fourth output biquad stage 0x28 out_1_biq_a40_lo lower byte of a40 c oefficient for fifth output biquad stage biquad filter 5 0x29 out_1_biq_a40_hi upper byte of a40 coefficient for fifth output biquad stage 0x2a out_1_biq_a41_lo lower byte of a41 coefficient for fifth output biquad stage 0x2b out_1_biq_a41_hi upper byte of a41 coefficient for fifth output biquad stage 0x2c out_1_biq_a42_lo lower byte of a42 coefficient for fifth output biquad stage 0x2d out_1_biq_a42_hi upper byte of a42 coefficient for fifth output biquad stage 0x2e out_1_biq_b41_lo lower byte of b41 coefficient for fifth output biquad stage 0x2f out_1_biq_b41_hi upper byte of b41 coefficient for fifth output biquad stage 0x30 out_1_biq_b42_lo lower byte of b42 coefficient for fifth output biquad stage 0x31 out_1_biq_b42_hi upper byte of b42 coefficient for fifth output biquad stage 9.3.5.5 output d ynamic r ange e xtension the output dynamic range extension (dre) block extends the range of the da7217 . dre can be enabled on either left, right or both output channels using dgs_enable . the input signal level at which the dre starts swapping gains can be set in the range of - 90 db to 0 db in 6 db steps using dgs_signal_lvl . to prevent clipping, the input signal level at which all of the applied dre steps are removed can be set in the range of - 42 db to 0 db in 6 db steps using dgs_anticlip_lvl . the maximum number of 1.5 db gain steps that the dre is allowed to apply can be controlled using dgs_steps . the response time of the leaky integrator used to track the signal level at the input of the dre is determined by the fraction of the signal added at each step. the fall rate is set by the fraction added when the signal is smaller than the current average, which can be programmed in the range 1/65536 to 1/4 using dgs_fall_coeff . the rise rate is set by the fraction added when the signal is larger than the current average, which can be programmed in the range 1/16384 to 1 using dgs_rise_coeff . ramping of any changes in gain levels is enabled by setting dgs_ramp_en = 1. when ramping is being performed, the changes in gain are made in 1.5 db steps, with the maximum number of 1.5 db steps controlled by dgs_steps . finer control of the ramping steps is provided if dgs_subr_en = 1. if dgs_subr_en = 1, each gain change of 1.5 db is performe d in smaller steps. it is possible to disable the ramping of the 1.5 db gain steps by setting dgs_ramp_en = 0, and similarly it is possible to disable the sub - ranging between the 1.5 db gain steps by setting dgs_subr_en = 0. note that clearing either of these two bits is likely to produce unacceptable audio artefacts such as pops and clicks. 9.3.5.6 dac n oise g ate the dac noise gate can be used to automatically mute the outputs when the average signal level at the output of both left and right channel dacs falls below a programmed noise threshold for longer than a programmed hold time. the dac noise gate is enabled using dac_ng_en . the threshold below which the noise gate is activated can be set in the range of - 102 db to - 60 db in 6 db steps using dac_ng_on_threshold . the
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 49 of 171 ? 2016 dialog semiconductor threshold above which the noise gate deactivates can be set in the same range using dac_ng_off_threshold . it is recommended to set dac_ng_off_threshold > dac_ng_on_threshold to provide some hysteresis. the number of samples for which the dac output signal must be below the on - threshold before the noise gate is activated can be set to 256, 512, 1024 or 2048 using dac_ng_setup_time . the noise gate is deactivated as soon as the signal level rises above the off threshold. prior to muting the output the gain is ramped down to minimum, and after un - muting the output the gain is ramped back up to its original value. the ramp rates can be adjusted using dac_ng_rampdn_rate and dac_ng_rampup_rate . 9.3.5.7 digital m ixer the da7217 codec contains a flexible digital mixer. any or all of the se ven digital inputs (four input filters, one tone generator, and two dai inputs) can be routed to any or all of the six digital outputs (output filter 1 and output filter 2, and four dai outputs) with a programmable gain on each of the 42 possible paths. th e names of the registers that specify the data source, and the data output, take the form _src . each of these 7 - bit registers uses one of its bit positions to select a signal source. these registers and the bit positions corresp onding to each of the seven possible signal source are listed in table 39 . example: setting outdai_1l_src [2] = 1 selects source data from input filter 2l (determined by bit position [2]) and passes it to output dai 1l. the gain on each of the 42 signal paths (seven possible inputs to six possible outputs) are independently controllable using registers whose names take the form __gain . these register fields are listed in table 40 . every register field uses the same set of settings to provide a gain range of - 42 db to 4.5 db in - 1.5 db steps. the full set of possible gain settings for each register is listed in table 41 . example: setting outdai_1l_infilt_2r_gain = 01001 provides - 28.5 db gain on the sig nal path input filter 2l to output dai 1l. see figure 23 .for the input - to - output paths
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 50 of 171 ? 2016 dialog semiconductor figure 23 : possible d igital m ixer r outings i n f i l t _ 1 l i n f i l t _ 1 r i n f i l t _ 2 l i n f i l t _ 2 r t o n e g e n i n d a i _ 1 l i n d a i _ 1 r o u t f i l t _ 1 l o u t f i l t _ 1 r o u t d a i _ 1 l o u t d a i _ 1 r d m i x _ o u t f i l t _ 1 l _ i n f i l t _ 1 l d r o u t i n g _ o u t f i l t _ 1 l d m i x _ o u t d a i _ 2 r _ i n d a i _ 1 r d r o u t i n g _ o u t d a i _ 2 r o u t d a i _ 2 l o u t d a i _ 2 r
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 51 of 171 ? 2016 dialog semiconductor table 39 : register n ames [ b it p ositions] for s electing d igital m ixer s ource and o utput output stream directed to input source out dai 1l out dai 1r o utdai 2l out dai 2r outfilt 1l outfilt 1r in filt 1l outdai_1l_src [0] outdai_1r_src [0] outdai_2l_src [0] outdai_2r_src [0] outfilt_1l_src [0] outfilt_1r_src [0] in filt 1r outdai_1l_src [1] outdai_1r_src [1] outdai_2l_src [1] outdai_2r_src [1] outfilt_1l_src [1] outfilt_1r_src [1] in filt 2l outdai_1l_src [2] outdai_1r_src [2] outdai_2l_src [2] outdai_2r_src [2] outfilt_1l_src [2] outfilt_1r_src [2] in filt 2r outdai_1l_src [3] outdai_1r_src [3] outdai_2l_src [3] outdai_2r_src [3] outfilt_1l_src [3] outfilt_1r_src [3] tone gen outdai_1l_src [4] outdai_1r_src [4] outdai_2l_src [4] outdai_2r_src [4] outfilt_1l_src [4] outfilt_1r_src [4] dai 1l outdai_1l_src [5] outdai_1r_src [5] outdai_2l_src [5] outdai_2r_src [5] outfilt_1l_src [5] outfilt_1r_src [5] dai 1r outdai_1l_src [6] outdai_1r_src [6] outdai_2l_src [6] outdai_2r_src [6] outfilt_1l_src [6] outfilt_1r_src [6] note for each listed bit position in each register, 0 = source/output combination disabled and 1 = source/output combination enable table 40 : cross r eference l isting the g ain - c ontrol r egisters for all d igital m ixer s ources and o utputs output stream input sour ce out dai 1l out dai 1r o utdai 2l out dai 2r outfilt 1l outfilt 1r in filt 1l outdai_1l_infilt_1l _gain outdai_1r_infilt_1l _gain outdai_2l_infilt_1l _gain outdai_2r_infilt_1l _gain outfilt_1l_infilt_1l _gain outfilt_1r_infilt_1l _gain in filt 1r outdai_1l_infilt_1r _gain outdai_1r_infilt_1r _gain outdai_2l_infilt_1r _gain outdai_2r_infilt_1r _gain outfilt_1l_infilt_1r _gain outfilt_1r_infilt_1r _gain in filt 2l outdai_1l_infilt_2l _gain outdai_1r_infilt_2l _gain outdai_2l_infilt_2l _gain outdai_2r_infilt_2l _gain outfilt_1l_infilt_2l _gain outfilt_1r_infilt_2l _gain in filt 2r outdai_1l_infilt_2r _gain outdai_1r_infilt_2r _gain outdai_2l_infilt_2r _gain outdai_2r_infilt_2r _gain outfilt_1l_infilt_2r _gain outfilt_1r_infilt_2r _gain ton e gen outdai_1l_tonege n_gain outdai_1r_tonege n_gain outdai_2l_tonege n_gain outdai_2r_tonege n_gain outfilt_1l_tonege n_gain outfilt_1r_tonege n_gain dai 1l outdai_1l_indai_1l _gain outdai_1r_indai_1 l_gain outdai_2l_indai _1 l_gain outdai_2r_indai_1 l_gain outfilt_1l_indai_1 l_gain outfilt_1r_indai_1 l_gain dai 1r outdai_1l_indai_1 r_gain outdai_1r_indai_1 r_gain outdai_2l_indai_1r _gain outdai_2r_indai_1 r_gain outfilt_1l_indai_1 r_gain outfilt_1r_indai_1 r_gain note the gain settings for each gain - control register listed above are listed in table 41
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 52 of 171 ? 2016 dialog semiconductor table 41 : gain s ettings and v alues for all r egisters l isted in table 40 gain r egister s etting value (db) gain r egister s etting value (db) 00000 - 42.0 10000 - 18.0 00001 - 40.5 10001 - 16.5 00010 - 39.0 10010 - 15.0 00011 - 37.5 10011 - 13.5 00100 - 36.0 10100 - 12.0 00101 - 34.5 10101 - 10.5 00110 - 33.0 10110 - 9.0 00111 - 31.5 10111 - 7.5 01000 - 30.0 11000 - 6.0 01001 - 28.5 11001 - 4.5 01010 - 27.0 11010 - 3.0 01011 - 25.5 11011 - 1.5 01100 - 24.0 11100 (default setting on all registers) 0.0 01101 - 22.5 11101 1.5 01110 - 21.0 11110 3.0 01111 - 19.5 11111 4.5 9.3.5.8 digital g ain input c hannel g ain the four input filter channels can be set to apply gain in the range of - 83.25 db to +12 db in 0.75 db steps by programming in_1l_digital_gain , in_1r_digital_gain , in_2l_digital_gain , and in_2r_digital_gain . output c hannel g ain the two output filter channels can be set to a pply gain in the range of - 83.25 db to +108 db in 0.75 db steps by programming out_1l_digital_gain and out_1r_digital_gain .
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 53 of 171 ? 2016 dialog semiconductor 9.4 output paths 9.4.1 digital to a nalog c onverter the da7217 codec includes a stereo audio digital to analog converter (dac). left and right channels of the dac are independently and automatically enabled whenever the corresponding output filter channel is enabled. the dac is clocked at 3.072 mhz or 2.8224 mhz depe nding on the output sample rate (sr2). left and right channels of the dac are independently and automatically enabled whenever the corresponding output filter channel is enabled. 9.4.2 headphone a mplifiers each headphone path has one finely adjustable amplifier ( mixout_l_gain and mixout_r_gain ) providing a gain o f - 1.0 db to 0 db in 0.5 db steps. these are followed by a more powerful headphone amplifier stage providing a gain of C 57 db to +6 db in 1.5 db steps. together they provide a total gain range of - 58 db to +6 db in 0.5 db steps. figure 24 : headphone o utput p aths the left - channel amplifier ( mixout_l_ctrl ) is enabled by setting mixout_l_amp_en = 1. the gain can be set in the range of C 1.0 db to 0 db in 0.5 db steps using mixout_l_amp_gain . this setting is static and is not synchronized with signal zero crossings and cannot be ramped. this amplifier is used to fine tune the overall analog gain level in the dac to headphone path. the right channel output buffer ( mixout_r_ctrl ) is controlled in the same manner. the two finely adjustable amplifiers mixout_l_gain and mixout_r_gain offer no mixing capabilities. they allow additional fine - tuni ng of the gain on the headphone outputs from - 1.0 db to 0 db in 0.5 db steps. the amplifiers are configured to operate differentially. the headphone loads are connected between hpl_p and hpl_n for the left headphone, and between hpr_p and hpr_n for the rig ht. the mode in which the headphone amplifiers operate is controlled using the hp_diff_ctrl register. the specific mode of operation is controlled using the hp_amp_diff_mode_en bit which must be set to 1 for differential mode (the default setting = 0). the headphone amplifiers can operate in either single - supply mode (no charge pump) or true - ground (charge pump) mode. the supply mode can be set using hp_amp_single_supply_en . single - supply mode is achieved by connected hpcsp to vdd and hpcsn to gnd on the pcb, and setting hp_amp_single_supply_en h p l _ n h p r _ p d i g i t a l e n g i n e d a c l d a c r o u t p u t f i l t e r s @ s r 2 ( h i g h - p a s s , 5 - b a n d e q , 5 b i q u a d ) h p l _ p h p r _ n m i x o u t _ l _ a m p - 1 . 0 : + 0 . 5 : 0 d b h p _ l _ a m p - 5 7 : + 1 . 5 : + 6 d b m i x o u t _ r _ a m p - 1 . 0 : + 0 . 5 : 0 d b h p _ r _ a m p - 5 7 : + 1 . 5 : + 6 d b d a 7 2 1 7
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 54 of 171 ? 2016 dialog semiconductor to 1. this register bit is protected to prevent accidental damage to the device and must be unlocked by writing 0xc3 to hp_diff_unlock . the left - channel headpho ne amplifier ( hp_l_ctrl ) is enabled by setting hp_l_amp_en = 1. the output stage is enabled independently by setting hp_l_amp_oe = 1. the amplifier gai n can be set in the range of C 57 db to +6 db in 1.5 db steps using hp_l_amp_gain . gain updates can be ramped through all intermediate values by setting hp_l_amp_ramp_en = 1. this ramp setting overrides the settings of hp_l_amp_zc_en . to prevent zipper noise when gain ramping is selected, the gain is ramped through additional sub - range gain steps. alternatively, gain updates can be synchronized with signal zero - crossings by setting hp_l_amp_zc_en = 1. if no zero - crossing is detected within the timeout period, then the gain update is applied unconditionally. the timeout period is approximately 0.1 s, and is not user configurable. the amplifier can be muted by setting hp_l_amp_mute_en = 1. the amplifier can be put in its minimum gain configuration by setting hp_l_amp_min_gain_en = 1. if either zero - crossing or ramping are enabled when minimum gain is set, the ramping or the zero crossing will be performed while activa ting the minimum gain. the right - channel headphone amplifier ( hp_r_ctrl ) is controlled in the same manner.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 55 of 171 ? 2016 dialog semiconductor table 42 : hp_l_amp_gain and hp_r_amp_gain s ettings hp_l_amp_gain a nd hp_r_amp_gain gain (db) hp_l_amp_gain and hp_r_amp_gain gain (db) hp_l_amp_gain and hp_r_amp_gain gain (db) 000000 to 010100 reserved 010101 - 57.0 101011 - 24.0 010110 - 55.5 101100 - 22.5 010111 - 54.0 101101 - 21.0 011000 - 52.5 101110 - 19.5 011001 - 51.0 101111 - 18.0 011010 - 49.5 110000 - 16.5 011011 - 48.0 110001 - 15.0 011100 - 46.5 110010 - 13.5 011101 - 45.0 110011 - 12.0 011110 - 43.5 110100 - 10.5 011111 - 42.0 110101 - 9.0 100000 - 40.5 110110 - 7.5 100001 - 39.0 110111 - 6.0 100010 - 37.5 111000 - 4.5 100011 - 36.0 111001 - 3.0 100100 - 34.5 111010 - 1.5 100101 - 33.0 111011 0.0 100110 - 31.5 111100 1.5 100111 - 30.0 111101 3.0 101000 - 28.5 111110 4.5 101001 - 27.0 111111 6.0 101010 - 25.5
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 56 of 171 ? 2016 dialog semiconductor 9.4.3 charge p ump c ontrol the charge pump is enabled by asserting cp_en in the cp_ctrl register. once enabled, the charge pump can be controlled manually or automat ically. when under manual control ( cp_mchange = 00), the output voltage level is directly determined by cp_mod . the amount of charge stored, and therefore the voltage generated, by the charge pump is controlled by the charge pump controller. as the power consumed by devices such as amplifiers is proportional to v oltage, significant power savings are available by matching the charge pumps output with the systems power requirement. under automatic control, there are three modes of operation that are determined by the cp_mchange setting. all four modes (one manual and three automatic) are described in table 43 . table 43 : charge p ump o utput v oltage c ontrol charge p ump t racking m ode cp_mchange charge p ump o utput v oltage details 00 manual the charge pumps output voltage is determined by the settings of cp_mod 01 voltage level depends on the programmed gain setting the charge pump controller monitors the pga volume settings and generates the minimum voltage that is required to drive a full - scale s ignal at the current gain level 10 voltage level depends on the dac signal envelope the charge pump controller monitors the dac signal, and generates the voltage that is required to drive a full - scale output at the current dac signal volume level 11 volt age level depends on the signal magnitude and the programmed gain setting the charge pump monitors both the programmed volume settings and the actual signal size, and generates the appropriate output voltage this is the most power - efficient mode of operati on when cp_mchange is set to 10 (tracking dac signal size, described in table 43 ) or cp_mchange is set to 11 (tracking the output signal size), the charge pump switches its supply between the vdd rail and the vdd/2 rail depending on its power requirements. when low output voltages are nee ded, the charge pump saves power by using the lower - voltage vdd/2 rail. the switching point between using the vdd rail and the vdd/2 rail is determined by the cp_thresh_vdd2 register setting. the switching points determined by cp_thresh_vdd2 vary between the two cp_mchange modes, and are summarized table 44 and table 45 . table 44 : cp_thresh_vdd2 s ettings in dac s ignal t racking m ode ( cp_mchange = 10) cp_thresh_vdd2 s etting approximate s witching p oint notes 0x01 - 30 dbfs do not use. very power - ineffic ient as nearly always vdd/1 0x03 - 24 dbfs not recommended. very power - inefficient as nearly always vdd/1 0x07 - 18 dbfs may be used but not power efficient 0x0e - 12 dbfs may be used 0x10 - 10 dbfs recommended setting 0x3f to 0x13 reserved, do not use
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 57 of 171 ? 2016 dialog semiconductor table 45 : cp_thresh_vdd2 s ettings in o utput s ignal t racking m ode ( cp_mchange = 11) cp_thresh_vdd2 s etting approximate s witching p oint notes 0x00 never not recommended. always vdd/1 mode 0x01 never not recommended. always vdd/1 mode 0x02 - 32 dbfs not recommended. power - inefficient as nearly always vdd/1 0x03 - 24 dbfs may be used 0x04 - 20 dbfs may be used 0x05 - 17 dbfs may be used 0x06 - 15 dbfs recommended setting 0x07 - 13 dbfs may be used 0x08 - 12 dbfs may be used 0x09 - 11 dbfs may be used 0x0a - 10 dbfs may be used 0x0b - 9 dbfs not recommended. vdd/2 begins to clip 0x0c never not recommended. always vdd/2 mode 0x0d never not recommended. always vdd/2 mode 0x0e never not recommended. always vdd/2 mode 0x0f never not recommended. always vdd/2 mode 9.4.3.1 charge pump initial and switching current at start - up, and when moving from vdd/2 to vdd/1 the charge pump output capacitors will be charged from the vdd supply rail. the initial current spike of 100 ns will be approximately 500 ma for a 1 f output capacitor. ensure that the supply to vdd is capable of delivering this current. placing a larger input capacitor on vdd will reduce the amount of instantaneous current pulled directly from the 1.8 v supply.note that this does not apply to single supply mode operation. similarly, when moving from vdd/1 to vdd/2 the charge pump output capacitors will be discharged through the vdd supply rail. the initial current spike of 100 ns being sunk through vdd will be approximately 100 ma for a 1 f capacitor. ensure that the supply to vdd is capable of sinking this current. note that this does not apply to single supply mode operation. 9.4.4 tracking the d emands on the c harge p ump o utput there are three points at which the demands on the charge pump can be tracked. these tracking points are determined by cp_mchange . 9.4.4.1 cp_mchange = 00 ( m anual m ode) if cp_mchange = 00, the voltage level is controlled by the cp_mod setting. 9.4.4.2 cp_mchange = 01 ( t racking the pga g ain s etting) if cp_mchange = 01, the pga gain setting is tracked, and provides feedback to boost the clock frequency when necessary. 9.4.4.3 cp_mchange = 10 ( t racking the dac s ignal s etting) if cp_mchange = 01, the size of the dac signal is tracked, and provides the feedback to boo st the clock frequency when necessary.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 58 of 171 ? 2016 dialog semiconductor 9.4.4.4 cp_mchange = 11 ( t racking the o utput s ignal m agnitude) if cp_mchange = 01, the magnitude of the output signal is tracked, and provides the feedback to boost the clock frequency when necessary.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 59 of 171 ? 2016 dialog semiconductor 9.4.5 specifying c lock f requencies when t racking the c harge p ump o utput d emand cp_fcontrol specifies the frequency of the charge pump clock. the frequency is fixed and is set manually if cp_mchange = 00 (see section 9.4.4.1 ). the available frequency settings are 1 mhz (the absolute maximum), and 540, 254, 125 and 63 khz. if cp_mchange does not = 00, the charge pump load is monitored and the clock frequency adjusted accordingly to allow the charge pump to supply the required c urrent. clock frequency varies depending on the charge pump requirements, and the cp_fcontrol settings specify the minimum frequency at which the clock wil l run. the maximum frequency is always 1 mhz. in addition to the cp_fcontrol settings outlined above, and which specify the minimum clock frequency, there is an extra setting of cp_fcontrol = 101 which has no minimum frequency. at this setting, the clock frequency is under the complete control of the trackin g and feedback mechanism. the frequency can vary from 0 hz when there is no load on the charge pump and no component leakage, up to the maximum of 1 mhz. in general this setting can be left at its default value of 001. 9.4.6 other c harge p ump c ontrols when a hig her charge pump output voltage is needed, the charge pump increases its output at the fastest rate possible given the controls and settings in that currently in place. once the higher output voltage is no longer needed, the charge pump controller waits for a period determined by the cp_tau_delay setting before reducing the output voltage. for best performance dialog semiconductor recommend setting cp_tau_delay to 16 ms or greater. cp_small_switch_freq_en enables a low - load, low - power switching mode. if cp_small_switch_freq_en is enabled and cp_fcontrol is set to a value between 000 and 100, any feedback from the analog level detector results in a switch from low - power to full - power. full - power is maintained for one cp_tau_delay period after the pulse, any subsequent pulses restart the cp_tau_delay period. if cp_fcontrol = 101, the first feedback from the analog level detector primes the change to full - power mode. if another pulse occurs within 32 clock cycles of the first feedback from the analog level detector, full power is enabled for one cp_tau_delay period. 9.4.7 true - g round s upply m ode in true - ground supply mode, the charge pump must be enabled to generate the ground - centered supply rails for the amplifiers. 9.5 phase l ocked l oop the da7217 contain s a phase locked loop (pll) that can be used to generate the required 11.2896 mhz or 12.288 mhz internal system clock when a frequency of between 2 and 54 mhz is applied to mclk. this allows sharing of clocks between devices in an application, reducing tot al system cost. for example, the codec may operate from common 13 mhz or 19.2 mhz system clock frequency. 9.5.1 pll b ypass m ode if an mclk signal ( of [ 11.2896 , 12.288 , 22.5792 , 24.576 , 45.1584 , or 49.152 ] mhz ) that is synchronous with wclk and bclk is available, the pll is not required and should be disabled to save power. pll bypass mode is activated by setting pll_mode = 00. in this mode the pll is bypassed and an audio frequency clock is applied to the mclk pin of the codec. the required clock frequency depends on the sample rate at which the audio dacs and adcs are operating. these clock frequencies are summarized in table 46 for the range of dac and adc sample rates that can be configured using the sr register.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 60 of 171 ? 2016 dialog semiconductor table 46 : sample r ate c ontrol r egister and c orresponding s ystem c lock f requency sample r ate, fs (khz) sr r egister system c lock f requency (mhz) 8 0001 12.288 11.025 0010 11.2896 12 0011 12.288 16 0101 12.288 22.05 0110 11.2896 24 0111 12.288 32 1001 12.288 44.1 1010 11.2896 48 1011 12.288 88.2 1110 11.2896 96 1111 12.288 if digital playback or record is required in bypass mode then the mclk frequency should be set to ( 11.2896 , 12.288 , 22.5792 , 24.576 , 45.1584 , or 49.152 ) mhz and pll_indiv should be programmed accordingly. if no valid mclk is detected, the output of the internal reference oscillator is used instead. however in this case only analog bypass paths may be used. 9.5.2 normal pll m ode (dai m aster) the pll is enabled by asserting pll_mode = 01. once the pll is enabled and has achieved phase lock, pll bypass mode is disabled and the output of the pll is used as the system clock. the pll input divider register ( pll_indiv ) is used to reduce the pll reference frequency (2 mhz to 5 4 mhz) to the usable range of 2 mhz to 4 .5 mhz as shown in table 47 error! reference source not found. , this reduces the pll reference frequency accor ding to the following equation: fref = fmclk n table 47 : pll input divider mclk input frequency (mhz) input divider (n) pll_indiv register (0x27 [3:2]) 2 to 4.5 1 000 4.5 to 9 2 001 9 to 18 4 010 18 to 36 8 011 36 to 54 16 100 the value of the pll feedback divider is used to set the voltage controlled oscillator (vco) frequency to eight times the required system clock frequency (see table 46 ). fvco = fref * pll feedback divider the value of the pll feedback divider is an unsigned number in the range of 0 to 128. it consists of seven integer bits and thirteen fractional bits split across three registers: pll_integer holds the seven integer bits pll_frac_bot holds the top bits (msb) of the fractional part of the divisor pll_frac_bot holds the bottom bits (lsb) of the fractional part of the divisor
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 61 of 171 ? 2016 dialog semiconductor 9.5.3 example c al culation of the f eedback divider s etting: example: a codec operating with a sample rate (f s ) = 48 khz and a reference input clock frequency of 12.288 mhz. the required output frequency is 98.304 mhz. the reference clock input = 12.288 mhz, which falls in t he range 10 - 20 mhz, so pll_indiv must be set to 0b010 dividing the reference input frequency by 4 (see table 48 ). the formula for calculating the feedback divider is: feedback divider (f) = vco output frequency * input divider (pll_indiv) / reference input clock therefore feedback divider (f) = (98.304 * 4) / 12.288 = 32 so : pll_fbdiv_integer (holding the seven integer bits) = 0x20 pll_fbdiv_frac_top (holding the top bits (msb) of th e fractional part of the divisor) = 0x00 pll_fbdiv_frac_bot (holding the bottom bits (lsb) of the fractional part of the divisor) = 0x00 table 48 shows example register settings that will configure the pll when using a 13 mhz, 15 mhz or 19.2 mhz clock. note that any mclk input frequency between 2 mhz and 54 mhz is supported. pll_indiv must be used to reduce the pll reference frequency to the usable range of 2 mhz to 5 mhz as shown in table 48 . table 48 : example pll c onfigurations mclk input frequency (mhz) system clock frequency (mhz) pll_mode register pll_frac_top register pll_frac_bot register pll_integer register 13 11.2896 0x01 0x19 0x45 0x1b 13 12.288 0x01 0x07 0xea 0x1e 15 11.2896 0x01 0x02 0xb4 0x18 15 12.288 0x01 0x06 0xdc 0x1a 19.2 11.2896 0x01 0x1a 0x1c 0x12 19.2 12.288 0x01 0x0f 0x5c 0x14 9.5.4 sample r ate m atching pll m ode (dai s lave) sample rate matching (srm) mode enables the pll output clock to be synchronized to the incoming wclk signal on the dai. the srm pll mode is enabled by setting pll_mode = 10. when using the dai in slave mode with the srm enabled, removing and re - applying the dai interface word clock wclk may cause the pll lock to be lost. to re - lock the pll disable the srm ( pll_mode = 00), reset the pll by re - writing to register pll_integer , and then re - enable the srm ( pll_mode = 10) after the dai wclk has been reapplied. when switching sample rates between 44.1 khz and 48 khz (or between the multiples of these sample rates), sr m must be disabled then re enabled using register bit pll_mode .
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 62 of 171 ? 2016 dialog semiconductor 9.5.5 mclk i nput mclk is the master clock input which must be in the range of 2 mhz to 54 mhz. mclk can be applied as a full - amplitude square wave, or as a low - amplitude sine wave (if the mclk squarer circuit has been enabled). the clock squarer circuit is enabled by writ ing pll_mclk_sqr_en = 1. the clock squarer circuit allows a sine wave or other low amplitude clock (down to 300 mvpp) to be applied to the chip. the mclk input is ac coupled on chip when using the clock squarer circuit. 9.5.5.1 mclk d etection a clock detection circuit will set bit [0] of pll_srm_status = 1 whenever the applied mclk frequency is above the minimum detection frequency of approximately 1 mhz. whenever this bit is high, the mclk signal is selected as the clock input to the pll. 9.5.6 audio reference o scillator for best audio performance, a system clock within t he specified range is required. the da7217 codec has an internal reference oscillator that provides the system clock when there is no valid mclk signal. the reference oscillator is automatically enabled whenever the codec is in active mode and the mclk fre quency is below the absolute minimum frequency of 1 mhz. when the codec enters standby mode, the oscillator is automatically disabled to save power. 9.5.6.1 oscillator c alibration the reference oscillator can be calibrated for use in low - power applications where n o mclk signal is supplied but where the system clock needs to be reasonably accurate. for example when using the level detection, the device can be set to automatically stream data to the host. if the oscillator has been calibrated then the dai clocks will run within 5 % of the nominal frequency, allowing the data to be processed correctly by the host. to perform this calibration, the device requires a valid wclk signal on the dai (in either master or slave mode). the srm block uses this as a reference agai nst which to tune the oscillator. see section 9.5.6.2 for the calibration procedure. the entire calibration block is enabled by setting pll_refosc_cal_en = 1. this enables both the initial calibration of the reference oscillator and the later use of the calibrated oscillator. as long as the reference o scillator block has been enabled, the oscillator can be calibrated by writing 1 to pll_refosc_cal_start . once the calibration has been completed, the pll_refosc_cal_start bit will return a 0 value. the 5 - bit calibration value is stored in pll_refosc_cal_ctrl . the reference oscillator runs automatically when in active mode and when there is no valid mclk signal. in standby mode, the oscillator is automatically disabled to save power.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 63 of 171 ? 2016 dialog semiconductor 9.5.6.2 procedure for c ali brating the r eference o scillator 1. apply a valid wclk frequency 2. set register pll_refosc_cal (address 0x98) = 0x80 3. the reference oscillator is now calibrate d and will run whenever it is required 9.5.7 int e rnal system c lock the internal system clock (sysclk) from which all other clocks are derived is normally one of two possible frequencies: 12.288 mhz for sr1 and sr2 from the 48 khz family (8, 12, 16, 24, 32, 48, 9 6 khz) 11.2896 mhz for sr1 and sr2 from the 44.1khz family (11.025, 22.05, 44.1, 88.2 khz) the only exception to this is when the dai is not used. in this case there is no requirement for a specific internal system clock frequency. 9.6 reference g eneration 9.6.1 voltage r eferences the audio circuits use supply - derived references of 0.45*vdd (vmid) and 0.9*vdd (dacref). there is also bandgap - derived fixed voltage reference of 1.2 v (vref). all three voltage references require off - chip decoupling capacitors (see sec tion 12 for further details). both vref and vmid are automatically enabled whenever the device enters active mode. they are automatically disabled when entering standby mode. the vmid reference comes from a high - resistance voltage divider, which combines with the decoupling capacitor to create a large rc (resistance - capacitance) time constant. this ensures a noise - free vmid reference, however the charge time is longer. the bandgap reference vref also takes time to charge its decoupling capacitor, but an internal timer ensures that no circuit that requires vref is enabled until vref has reached 1.2 v. the dacref voltage reference is produced from vmid by a times - two buffer so is capable of charging its decoupling capacitor quickly. 9.6.2 bias c urrents da7217 has a master bias current generation block that is enabled by default using the bias_en bit. master bia s current generation is set to on by default. each sub - system has its own local current generation block, which is automatically enabled whenever any of its sub - blocks are enabled. 9.6.3 voltage l evels 9.6.3.1 digital r egulator the digital engine is supplied from vdd. a n internal ldo regulator can produce the internal rail vdddig. the regulator is controlled using the ldo_ctrl register and is enabled using the ldo_en bit. vdddig must not be used to drive external circuitry. when the ldo is disabled, the regulator is in bypass mode and vdddig is shorted to vdd. when the ldo is enabled, vdddig is regulated by the setting of ldo_en (see table 49 : ).
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 64 of 171 ? 2016 dialog semiconductor table 49 : audio s ub - s ystem d igital ldo l evel ldo_level_select s etting ldo l evel (v) 00 1.05 01 1.10 10 1.20 11 1.40 9.6.3.2 digital i nput/ o utput p ins v oltage l evel the digital input/output (i/o) pins can be set to operate in either a high voltage (2.5 v to 3.6 v) or low voltage (1.5 v to 2.5 v) range using the io_voltage_level bit. this bit should be set to the relevant value based on the io voltage level of the host. 9.7 i 2 c c ontrol i nterface the da7217 is completely software - controlled from the host via register writes. the da7217 provides an i 2 c compliant serial control interface to access these registers. data is shifted into or out of the da7217 under the control of the host processor, which also provides the serial clock. the i 2 c clock is supplied by the scl line and the bi - directional i 2 c data is carr ied by the sda line. the i 2 c interface is open - drain supporting multiple devices on a single line. the bus lines have to be pulled high by external pull - up resistors (1 k? to 20 k? range). the attached devices only drive the bus lines low by connecting the m to ground. this means that two devices cannot conflict if they drive the bus simultaneously. table 50 : device 7 - b it i 2 c s lave a ddresses pin ad device i 2 c a ddress high 1b low 1a in standard/fast mode the highest frequency of the bus is 1 mhz. the exact frequency can be determined by the application and does not have any relation to the da7217 internal clock signals. da7217 will follow the host clock speed within the described limi tations and does not initiate any clock arbitration or slow down. in high - speed mode the maximum frequency of the bus can be increased up to 3.4 mhz. this mode is supported if the scl line is driven with a push - pull stage from the host and if the host enab les an external 3 ma pull - up at the sda pin to decrease the rise time of the data. in this mode the sda line on da7217 is able to sink up to 12 ma. in all other respects the high speed mode behaves as the standard/fast mode. communication on the i 2 c bus al ways takes place between two devices, one acting as the master and the other as the slave. the da7217 will only operate as a slave in i 2 c communication .
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 65 of 171 ? 2016 dialog semiconductor figure 25 : schematic of the i 2 c c ontrol i nterface b us all data is transmitted across the i 2 c bus in groups of eight bits. to send a bit the sda line is driven to the intended state while the sda is low (a low on sda indicates a zero bit). once the sda has settl ed, the scl line is brought high and then low . this pulse on scl clocks the sda bit into the receivers shift register. a two byte serial protocol is used containing one byte for address and one byte for data. data and address transfer is transmitted msb first for both read and write operat ions. all transmission begins with the start condition from the master while the bus is in the idle state (the bus is free). it is initiated by a h igh to l ow transition on the sda line while the scl is in the h igh state (a stop condition is indicated by a l ow to h igh transition on the sda line while the scl line is in the h igh state). figure 26 : timing of i 2 c start and stop conditions the i 2 c bus is monitored by da7217 for a valid slave address whenever the interface is enabled. it responds with an acknowledge immediately when it receives its own slave address. the acknowledge is achi eved by pulling the sda line low during the following clock cycle (white blocks marked with a in figure 27 to figure 30 ). the prot ocol for a register write from master to slave consists of a start condition, a slave address with read/write bit and the 8 - bit register address followed by eight bits of data terminated by a stop condition (the da7217 responds to all bytes with an acknowledge).this is illustrated in figure 27 . figure 27 : i 2 c b yte w rite (sda signal) when the host reads data from a register it first has to write access da7217 with the target register address and then read access da7217 with a repeated start, or alternatively a second start h o s t p r o c e s s o r c o d e c s d a s c l p e r i p h e r a l d e v i c e s d a s c l s c l s d a v d d _ i o v d d _ i o s c l s d a slave a d dr w reg a d dr a data a p s = start condition a = acknowledge ( low) p = stop condition w = write (low) master to slave slave to master 7 - bits 1 - bit 8 - bits 8 - bits a s
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 66 of 171 ? 2016 dialog semiconductor condition. after receiving the data the host sends a not acknowledge (nak) and terminates the transmission with a stop condition: figure 28 : examples of the i 2 c b yte r ead (sda line) consecutive (page mode) read - out mode ( cif_i2c_write_mode = 0) is initiated from the master by sending an acknowledge instead of not acknowledge (nak) after receipt of the data word. the i 2 c co ntrol block then increments the address pointer to the next i 2 c address and sends the data to the master. this enables an unlimited read of data bytes until the master sends a nak directly after the receipt of data, followed by a subsequent stop condition. if a non - existent i 2 c address is read out, the da7217 will return code zero. figure 29 : examples of i 2 c p age r ead (sda line) the slave address after the repeated start condition must be the same as the previous slave address. consecutive - write - mode ( cif_i2c_write_mode = 0) is supported if the master sends several data bytes following a slave register add ress. the i 2 c control block then increments the address pointer to the next i 2 c address, stores the received data and sends an acknowledge until the master sends the stop condition. figure 30 : i 2 c page write (sda line) an alternative repeated - write mode that uses non - consecutive slave register addresses is available using the cif_i2c_write_mode register. in this repeat mode ( cif_i2c_write_mode = 1), the slave can be configured to support a hosts repeated write operations into several non - consecutive regi sters. data is stored at the previously received register address. if a new start or stop condition occurs within a message, the bus returns to idle mode. this is illustrated in figure 31 . s slavea d dr w a reg ad dr a slavead d r a s = start condition a = acknowledge ( low) sr = repeated start condition a * = no t a cknowledge (na k) p = stop condition w = write (low) r = read (high) master to slave 7 - bits 1 - bit 8 - bits 7 - bits data a * sr r 1 - bit 8 - bits slavead d r a 7 - bits data p s r 1 - bit 8 - bits p a * slave to master s slavea d dr w a reg ad d r p 7 - bits 1 - bit 8 - bits a s slavead d r w a reg ad d r a slavead d r a s = st art condition a = acknowledge (low) sr = repeat start condition a * = no t acknowledge (nak) p = stop condition w = write (low) r = read (high) master to slave slave to master 7 - bits 1 bit 8 - bits 7 - bits data a sr r 1 - bit 8 - bits s slavead d r w a reg ad d r a slavead d r a 7 - bits 1 - bit 8 - bits 7 - bits data p s r 1 - bit 8 - bits p a a * p data data a a * data 8 - bits 8 - bits 8 - bits s slavead d r w a regadr a data a s = start condition a = acknowledge (low) sr = repeat start condition a * = no t acknowledge (nak) p = stop condition w = write (low) r = read (high) master to slave slave to master 7 - bits 1 bit 8 - bits 8 - bits data a 1 - bit 8 - bits a p data . a 8 - bits repeated writes
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 67 of 171 ? 2016 dialog semiconductor figure 31 : i 2 c repeated write (sda line) in page mode ( cif_i2c_write_mode = 0), both page mode reads and writes using auto incremented addresses, and repeat mode reads and writes using non auto - incremented addresses, are supported. in repeat mode ( cif_i2c_write_mode = 1) however, only repeat mode reads and writes are supported. 9.8 digital a udio i nterface da7217 provides one d igital a udio i nterface (dai) to input dac data or to output adc data. it is enabled by asserting dai_en . the dai provides flexible routing options allowing each interface to be connected to different s ignal paths as desired in each application. the dai consists of a four - wire serial interface, with bit clock (bclk), word clock (wclk), data - in (datin) and data - out (datout) pins. both master and slave clock modes are supported by the da7217 . master mode i s enabled by setting register dai_clk_en = 1. in master mode, the bit clock and word clock signals are outputs from the codec. in slave mode these are inp uts to the codec. in master mode the frame length is configured using the dai_clk_en field. in slave mode this register is not used. figure 32 : master m ode ( dai_clk_en = 1) figure 33 : slave m ode ( dai_clk_en = 0) s slavead d r w a reg ad d r a data a s = start condition a = acknowledge (low) sr = repeat start condition a * = no t acknowledge (nak) p = stop condition w = write (low) r = read (high) master to slave slave to master 7 - bits 1 bit 8 - bits 8 - bits reg ad d r a 1 - bit 8 - bits a p data . a 8 - bits repeated writes d a 7 2 1 7 c o d e c p r o c e s s o r b c l k w c l k d a t i n d a t o u t d a 7 2 1 7 c o d e c p r o c e s s o r b c l k w c l k d a t i n d a t o u t
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 68 of 171 ? 2016 dialog semiconductor the internal serialized dai data is 24 bits wide. serial data that is not 24 bits wide is either shortened or zero - filled at input to, or at output from, the dais internal 24 - bit data width. the serial data word length can be configured to be 16, 20, 24 or 32 bits wide using th e dai_word_length register bits. four different data formats are supported by the dai . the data format is determined by the setting of the dai_format register bits. i 2 s mode left justified mode right justified mode dsp mode time division multiplexing (tdm) is available in any of these modes to support the ca se where multiple devices are communicating simultaneously on the same bus. tdm is enabled by asserting the dai_tdm_mode_en bit. 9.8.1 dai c hannels the dai suppo rts one to four channels, even in non - tdm modes. the number of channels required is specified by setting dai_ch_num bit which controls the position of the channels as shown in figure 34 . figure 34 : effect of dai_c h_num b it on dai c hannel p ositions ( n on - tdm m ode) in tdm mode, each of the four channels can be individually enabled using the dai_tdm_mode_en bit as show n in figure 35 . figure 35 : effect of dai_tdm_ch_en b it on dai c han nel p ositions (tdm m ode) c h a n n e l 1 l b c l k w c l k d a t i n / d a t o u t d a i _ c h _ n u m = 1 c h a n n e l 1 l c h a n n e l 1 l d a i _ c h _ n u m = 2 c h a n n e l 1 l c h a n n e l 1 r c h a n n e l 1 l d a i _ c h _ n u m = 3 c h a n n e l 1 l c h a n n e l 1 r c h a n n e l 2 l c h a n n e l 2 l c h a n n e l 1 l d a i _ c h _ n u m = 4 c h a n n e l 1 l c h a n n e l 1 r c h a n n e l 2 l c h a n n e l 2 l c h a n n e l 2 r d a t i n / d a t o u t d a t i n / d a t o u t d a t i n / d a t o u t c h a n n e l 1 l d a i _ t d m _ c h _ e n = 1 c h a n n e l 1 l c h a n n e l 1 r c h a n n e l 1 l c h a n n e l 1 l c h a n n e l 1 r c h a n n e l 2 l c h a n n e l 2 l d a i _ t d m _ c h _ e n = 2 d a i _ t d m _ c h _ e n = 3 c h a n n e l 1 l c h a n n e l 1 l c h a n n e l 1 r c h a n n e l 2 l c h a n n e l 2 l c h a n n e l 2 r d a i _ t d m _ c h _ e n = 4 c h a n n e l 1 l c h a n n e l 1 l c h a n n e l 2 l c h a n n e l 2 l d a i _ t d m _ c h _ e n = 5 d a i _ t d m _ c h _ e n = 1 5 b c l k w c l k d a t i n / d a t o u t d a t i n / d a t o u t d a t i n / d a t o u t d a t i n / d a t o u t d a t i n / d a t o u t d a t i n / d a t o u t
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 69 of 171 ? 2016 dialog semiconductor 9.8.2 dai wclk t ristate m ode for systems that use the bclk output of da7217 as a reference clock, it is possible to tristate the wclk signal even when bclk is acting as an output. this is done by enabling dai master mode ( dai_clk_en = 1) and wclk tristate ( dai_wclk_tri_state = 1). 9.9 interrupt c ontrol the nirq output can be used to signal to the host that an event has been detected by the codec. the event that triggered the interrupt can be revealed by reading the event register. events can be excluded from generating interrupts using the event_mask register. 9.9.1 level d etect e vents t he input level - detect event status can be seen in lvl_det_event , and cleared by writing lvl_det_event = 1. level - detect events can be excluded by setting lvl_det_event_msk = 1.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 70 of 171 ? 2016 dialog semiconductor 9.10 system s ettings 9.10.1 sample r ate the inputs (adc) and the outputs (dac) can be set to operate at independent sample rates using sr_adc and sr_dac . the only condition is that either the adc sample rate or the dac sample rate must be an integer or multiple of the other. the dai will operate at whichever of the adc or dac sample rates is faster, and samples for the slower of the two will be repeated on the dai. 9.10.2 gain r amp r ate the rate at which all gains are ramped is controlled by the one register f ield gain_ramp_rate. the four possible settings and ramping rates controllable by the gain_ramp_ctrl register are: table 51 : ramp r ate s ettings a pplicable to a ll r amp - e nabled g ains gain_ramp_rate s etting ramping r ate ( note 1 ) 00 0 = nominal rate * 8 (fastest) 01 1 = nominal rate 10 2 = nominal rate / 8 11 3 = nominal rate / 16 (slowest) note 1 nominal rate = 0.88 ms/db 9.10.3 program counter c ontrol the program counter runs from the internal system clock and needs to be synchronized with the dai so that data is sampled and delivered at the correct time with respect to the dai clocks. synchronization behavior is controlled using the pc_count register. the program counter can be set to automatically resync to the dai using pc_resync_auto . it can be set to freerun without the need for dai clocks using pc_freerun . 9.10.4 soft r eset the device can be reset (all register values reset to their default values) by writing cif_reg_soft_reset = 0x80. this is an abrupt reset. to avoid pops and clicks, all audio paths must be shut down prior to issuing a soft reset.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 71 of 171 ? 2016 dialog semiconductor 10 register m aps and d efinitions table 52 : register map adc_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000c0 adc_1_ctrl reserved adc_1_aaf_e n reserved 0x000000c1 adc_2_ctrl reserved adc_2_aaf_e n reserved 0x000000c2 adc_mode reserved adc_lvldet_a uto_exit adc_lvldet_m ode adc_lp_mode table 56 : adc_1_ctrl (page 0: 0x000000c0) bit mode symbol description reset 2 r/w adc_1_aaf_en anti - alias filter control on adc1 0 = anti - alias filter disabled 1 = anti - alias filter enabled 0x1 table 57 : adc_2_ctrl (page 0: 0x000000c1) bit mode symbol description reset 2 r/w adc_2_aaf_en anti - alias filter control on adc2 0 = anti - alias filter disabled 1 = anti - alias filter enabled 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 72 of 171 ? 2016 dialog semiconductor table 58 : adc_mode (page 0: 0x000000c2) bit mode symbol description reset 2 r/w adc_lvldet_auto_exit controls the automatic exit of adc level detection mode. when set, adc level detection mode is exited automatically as soon as the input signal level exceeds the detection threshold level specified in lvl_det_level. when adc level detection mode is exited, the adc level detection control bit (adc_lvldet_mode) is automatically cleared. 0 = when the thresho ld level is exceeded, adc level detection mode is not exited 1 = when the threshold level is exceeded, adc level detection mode is exited, and adc_lvldet_mode is cleared 0x0 1 r/w adc_lvldet_mode adc level detection mode control 0 = disabled 1 = enabled 0x0 0 r/w adc_lp_mode adc low power mode control 0 = disabled 1 = enabled 0x0 table 59 : register map ags_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000003c ags_enable reserved ags_enable 0x0000003d ags_trigge r reserved ags_trigger 0x0000003e ags_att_ma x reserved ags_att_max 0x0000003f ags_timeou t reserved ags_timeout_ en 0x00000040 ags_anticli p_ctrl ags_anticlip_ en reserved
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 73 of 171 ? 2016 dialog semiconductor table 60 : ags_enable (page 0: 0x0000003c) bit mode symbol description reset 1:0 r/w ags_enable adc gain swap (ags) control bit 0 controls the ags on channel 1 bit 1 controls the ags on channel 2 0 = disabled 1 = enabled 0x0 table 61 : ags_trigger (page 0: 0x0000003d) bit mode symbol description reset 3:0 r/w ags_trigger ags trigger level 0000 = 0 db 0001 = - 6 db 0010 = - 12 db 0011 = - 18 db continuing in - 6 db steps to 1001 = - 54 db (default) continuing in - 6 db steps to 1110 = - 84 db 1111 = - 90 db 0x9 table 62 : ags_att_max (page 0: 0x0000003e) bit mode symbol description reset 2:0 r/w ags_att_max maximum attenuation applied to the adc by ags 000 = 0 db 001 = 6 db 010 = 12 db 011 = 18 db 100 = 24 db 101 = 30 db 110 = 36 db 111 = reserved 0x0 table 63 : ags_timeout (page 0: 0x0000003f) bit mode symbol description reset 0 r/w ags_timeout_en timeout control 0 = timeout disabled 1 = timeout enabled 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 74 of 171 ? 2016 dialog semiconductor table 64 : ags_anticlip_ctrl (page 0: 0x00000040) bit mode symbol description reset 7 r/w ags_anticlip_en adc gain swap (ags) clip prevention control 0 = disabled 1 = enabled 0x0 table 62 : register map alc_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000030 alc_ctrl1 alc_sync_mode alc_en 0x00000031 alc_ctrl2 alc_release alc_attack 0x00000032 alc_ctrl3 reserved alc_hold 0x00000033 alc_noise reserved alc_noise 0x00000034 alc_target _min reserved alc_threshold_min 0x00000035 alc_target _max reserved alc_threshold_max 0x00000036 alc_gain_li mits alc_gain_max alc_atten_max 0x00000037 alc_ana_ga in_limits reserved alc_ana_gain_max reserved alc_ana_gain_min 0x00000038 alc_anticli p_ctrl alc_anticlip_e n reserved alc_anticlip_step
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 75 of 171 ? 2016 dialog semiconductor table 66 : alc_ctrl1 (page 0: 0x00000030) bit mode symbol description reset 7:4 r/w alc_sync_mode alc hybrid mode control (using analogue and digital gains) bit 0 = channel 1 bit 1 = reserved bit 2 = channel 2 bit 3 = reserved 0 = disabled 1 = enabled 0x0 3:0 r/w alc_en controls the alc operation on the adc channel bit 0 = channel 1 left bit 1 = channel 1 right bit 2 = channel 2 left bit 3 = channel 2 right 0 = alc disabled on this channel 1 = alc enabled on this channel 0x0 table 67 : alc_ctrl2 (page 0: 0x00000031) bit mode symbol description reset 7:4 r/w alc_release sets the alc release rate this is the rate in ms/db at which the alc can increase the gain 0000 = 28.66/fs 0001 = 57.33/fs 0010 = 114.6/fs 0011 = 229.3/fs 0100 = 458.6/fs 0101 = 917.1/fs 0110 = 1834/fs 0111 = 3668/fs 1000 = 7337/fs 1001 = 14674/fs 1010 to 1111 = 29348/fs 0x0 3:0 r/w alc_attack sets the alc attack rate this is the speed at which the alc can decrease the gain 0000 = 7.33/fs 0001 = 14.66/fs 0010 = 29.32/fs 0011 = 58.64/fs 0100 = 117.3/fs 0101 = 234.6/fs 0110 = 469.1/fs 0111 = 938.2/fs 1000 = 1876/fs 1001 = 3753/fs 1010 = 7506/fs 1011 = 15012/fs 1100 to 1111 = 30024/fs 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 76 of 171 ? 2016 dialog semiconductor table 65 : alc_ctrl3 (page 0: 0x00000032) bit mode symbol description reset 3:0 r/w alc_hold sets the alc hold time. this is the length of time that the alc waits before releasing. 0000 = 62/f s 0001 = 124/ f s 0010 = 248/ f s 0011 = 496/ f s 0100 = 992/ f s 0101 = 1984/ f s 0110 = 3968/ f s 0111 = 7936/ f s 1000 = 15872/ f s 1001 = 31744/ f s 1010 = 63488/ f s 1011 = 126976/ f s 1100 = 253952/ f s 1101 = 507904/ f s 1110 = 1015808/ f s 1111 = 2031616/ f s 0x0 table 66 : alc_noise (page 0: 0x00000033) bit mode symbol description reset 5:0 r/w alc_noise threshold below which input signals will not cause the alc to change gain 00 0000 = 0 dbfs 00 0001 = - 1.5 dbfs 00 0010 = - 3.0 dbfs 00 0011 = - 4.5 dbfs continuing in - 1.5 dbfs steps to 11 1110 = - 93.0 dbfs 11 1111 = - 94.5 dbfs (default) 0x3f
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 77 of 171 ? 2016 dialog semiconductor table 67 : alc_target_min (page 0: 0x00000034) bit mode symbol description reset 5:0 r/w alc_threshold_min sets the minimum target amplitude of the alc output signal. if the output signal drops below this level, the alc will increase the gain until the output signal rises above this level. 00 0000 = 0 dbfs 00 0001 = - 1.5 dbfs 00 0010 = - 3.0 dbfs 00 0011 = - 4.5 dbfs continuing in - 1.5 dbfs steps to 11 1110 = - 93.0 dbfs 11 1111 = - 94.5 dbfs (default) 0x3f table 68 : alc_target_max (page 0: 0x00000035) bit mode symbol description reset 5:0 r/w alc_threshold_max sets the maximum target amplitude of the alc output signal. if the output signal exceeds this level, the alc will decrease the gain until the output signal drops below this level. 00 0000 = 0 dbfs 00 0001 = - 1.5 dbfs 00 0010 = - 3.0 dbfs 00 0011 = - 4.5 dbfs continuing in - 1.5 dbfs steps to 11 1110 = - 93.0 dbfs 11 1111 = - 94.5 dbfs 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 78 of 171 ? 2016 dialog semiconductor table 69 : alc_gain_limits (page 0: 0x00000036) bit mode symbol description reset 7:4 r/w alc_gain_max sets the maximum amount of gain that can be applied by the alc 0000 = 0 db 0001 = 6 db 0010 = 12 db continuing in 6 db steps to 1110 = 84 db 1111 = 90 db 0xf 3:0 r/w alc_atten_max sets the maximum amount of attenuation that can be applied by the alc 0000 = 0 db 0001 = 6 db 0010 = 12 db continuing in 6 db steps to 1110 = 84 db 1111 = 90 db 0xf table 70 : alc_ana_gain_limits (page 0: 0x00000037) bit mode symbol description reset 6:4 r/w alc_ana_gain_max sets the maximum amount of analog gain that can be applied by the alc (mixed analog and digital hybrid gain mode only) 000 = reserved 001 = 0 db 010 = 6 db continuing in 6 db steps to 111 = 36 db 0x7 2:0 r/w alc_ana_gain_min sets the minimum amount of analog gain that can be applied by the alc (mixed analog and digital hybrid gain mode only) 000 = reserved 001 = 0 db 010 = 6 db continuing in 6 db steps to 111 = 36 db 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 79 of 171 ? 2016 dialog semiconductor table 71 : alc_anticlip_ctrl (page 0: 0x00000038) bit mode symbol description reset 7 r/w alc_anticlip_en controls the alc signal clip prevention mechanism 0 = disabled 1 = enabled 0x0 1:0 r/w alc_anticlip_step sets the alc attack rate when the output signal exceeds the anticlip threshold level specified in alc_threshold_max 00 = 0.034 db/ f s 01 = 0.068 db/ f s 10 = 0.136 db/ f s 11 = 0.272 db/ f s 0x0 table 75 : register map calib_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000044 calib_ctrl reserved calib_overflo w calib_auto_e n reserved calib_offset_ en 0x00000045 calib_offs et_auto_m_ 1 calib_offset_auto_m_1 0x00000046 calib_offs et_auto_u_ 1 reserved calib_offset_auto_u_1 0x00000047 calib_offs et_auto_m_ 2 calib_offset_auto_m_2 0x00000048 calib_offs et_auto_u_ 2 reserved calib_offset_auto_u_2
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 80 of 171 ? 2016 dialog semiconductor table 76 : calib_ctrl (page 0: 0x00000044) bit mode symbol description reset 3 r calib_overflow offset overflow during calibration 0x0 2 r/w calib_auto_en control of automatic calibration 0 = disabled 1 = enabled this is a self clearing bit. it clears automatically as soon as the calibration routine has been completed. 0x0 0 r/w calib_offset_en dc offset cancellation control 0 = disabled 1 = enabled 0x0 table 77 : calib_offset_auto_m_1 (page 0: 0x00000045) bit mode symbol description reset 7:0 r calib_offset_auto_m _1 contains the lower bits [15:8] of the offset correction for the left channel when in automatic mode 0x0 table 78 : calib_offset_auto_u_1 (page 0: 0x00000046) bit mode symbol description reset 3:0 r calib_offset_auto_u_ 1 contains the upper bits [19:16] of the offset correction for the left channel when in automatic mode 0x0 table 79 : calib_offset_auto_m_2 (page 0: 0x00000047) bit mode symbol description reset 7:0 r calib_offset_auto_m _2 contains the lower bits [15:8] of the offset correction for the right channel when in automatic mode 0x0 table 80 : calib_offset_auto_u_2 (page 0: 0x00000048) bit mode symbol description reset 3:0 r calib_offset_auto_u_ 2 contains the upper bits [19:16] of the offset correction for the right channel when in automatic mode 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 81 of 171 ? 2016 dialog semiconductor table 78 : register map charge_pump_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000ac cp_ctrl cp_en cp_small_swi tch_freq_en cp_mchange cp_mod reserved 0x000000ad cp_delay reserved cp_tau_delay cp_fcontrol 0x000000ae cp_vol_thr eshold1 reserved cp_thresh_vdd2 table 82 : cp_ctrl (page 0: 0x000000ac) bit mode symbol description reset 7 r/w cp_en charge pump control 0 = charge pump is disabled 1 = charge pump is enabled 0x0 6 r/w cp_small_switch_fre q_en charge pump low - load low - power mode control 0 = disabled 1 = enabled 0x1 5:4 r/w cp_mchange charge pump tracking mode control 00 = voltage level is controlled by cp_mod 01 = voltage level is controlled by the largest output volume level 10 = voltage level is controlled by the dac volume level 11 = voltage level is controlled by the signal magnitude 0x2 3:2 r/w cp_mod charge pump lev el control in manual mode 00 = standby 01 = reserved 10 = cpvdd/2 11 = cpvdd/1 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 8 2 of 171 ? 2016 dialog semiconductor table 80 : cp_delay (page 0: 0x000000ad) bit mode symbol description reset 5:3 r/w cp_tau_delay charge pump voltage decay rate control. this controls the rate of change when moving from a vdd supply voltage to a vdd/2 supply voltage 000 = 0 ms 001 = 2 ms 010 = 4 ms 011 = 16 ms 100 = 64 ms 101 = 128 ms 110 = 256 ms 111 = 512 ms 0x2 2:0 r/w cp_fcontrol charge pump nominal clock rate. lower rates provide lower power but can drive less load. 000 = 1 mhz 001 = 500 khz 010 = 250 khz 011 = 125 khz 100 = 63 khz 101 = 0 khz (analog feedback control only) 110 = reserved 111 = reserved 0x1 table 81 : cp_vol_threshold1 (page 0: 0x000000ae) bit mode symbol description reset 5:0 r/w cp_thresh_vdd2 threshold at and below which the charge pump can use the cpvdd/2 rail. note: this setting is only effective when cp_mchange = 10 or cp_mchange = 11. it is ignored for cp_mchange settings of 00 and 01 0xe table 85 : register map common_ao_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000000 system_act ive reserved system_activ e 0x00000001 cif_ctrl reserved cif_i2c_write_ mode
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 83 of 171 ? 2016 dialog semiconductor table 86 : system_active (page 0: 0x00000000) bit mode symbol description reset 0 r/w system_active system standby mode control 0 = standby mode 1 = acitve mode 0x0 table 87 : cif_ctrl (page 0: 0x00000001) bit mode symbol description reset 0 r/w cif_i2c_write_mode 2 - wire interface write mode 0 = page mode. the register address is automatically incremented after the first write. 1 = repeat mode. the register address and data are sent for each write. 0x0 table 85 : register map common_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000004 chip_id1 chip_id1 0x00000005 chip_id2 chip_id2 0x00000006 chip_revisi on chip_major chip_minor 0x00000009 soft_reset cif_reg_soft_r eset reserved 0x0000000b sr sr_dac sr_adc 0x0000000c pc_count reserved pc_resync_a uto pc_freerun 0x0000000d gain_ramp_ ctrl reserved gain_ramp_rate 0x00000010 cif_timeout _ctrl reserved i2c_timeout_ en
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 84 of 171 ? 2016 dialog semiconductor table 89 : chip_id1 (page 0: 0x00000004) bit mode symbol description reset 7:0 r chip_id1 chip id - first two numbers only 0x23 table 90 : chip_id2 (page 0: 0x00000005) bit mode symbol description reset 7:0 r chip_id2 chip id - second two numbers only 0x39 table 91 : chip_revision (page 0: 0x00000006) bit mode symbol description reset 7:4 r chip_major chip major revision number 0x0 3:0 r chip_minor chip minor revision number 0x1 table 92 : soft_reset (page 0: 0x00000009) bit mode symbol description reset 7 r/w cif_reg_soft_reset software reset writing to this bit causes all the registers to be reset, returning all the registers back to their default setting 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 85 of 171 ? 2016 dialog semiconductor table 93 : sr (page 0: 0x0000000b) bit mode symbol description reset 7:4 r/w sr_dac dac sample rate control 0001 = 8.000 khz 0010 = 11.025 khz 0011 = 12.000 khz 0101 = 16.000 khz 0110 = 22.050 khz 0111 = 24.000 khz 1001 = 32.000 khz 1010 = 44.100 khz 1011 = 48.000 khz 1110 = 88.200 khz 1111 = 96.000 khz 0xa 3:0 r/w sr_adc adc sample rate control 0001 = 8.000 khz 0010 = 11.025 khz 0011 = 12.000 khz 0101 = 16.000 khz 0110 = 22.050 khz 0111 = 24.000 khz 1001 = 32.000 khz 1010 = 44.100 khz 1011 = 48.000 khz 1110 = 88.200 khz 1111 = 96.000 khz 0xa table 94 : pc_count (page 0: 0x0000000c) bit mode symbol description reset 1 r/w pc_resync_auto pc resync mode control 0 = no resync - just double sample or skip a sample if the dai drifts with respect to the system clock 1 = automatically resync if the dai drifts with respect to the system clock 0x1 0 r/w pc_freerun enables the filter operation when dai is not enabled or no dai clocks are available (adc to dac processing path) 0 = adc and dac filters synchronised to the dai 1 = filters free running note: this should be set to 1 if the adc is feeding the dac directly and no dai clocks are present 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 86 of 171 ? 2016 dialog semiconductor table 95 : gain_ramp_ctrl (page 0: 0x0000000d) bit mode symbol description reset 1:0 r/w gain_ramp_rate controls the speed of the gain ramping when gain_ramping is activate (nominal rate = 0.88 ms/db) 0 = nominal rate * 8 (fastest) 1 = nominal rate 2 = nominal rate / 8 3 = nominal rate / 16 (slowest) 0x0 table 96 : cif_timeout_ctrl (page 0: 0x00000010) bit mode symbol description reset 0 r/w i2c_timeout_en i2c timeout to release scl if read/write access to the chip does not complete correctly 0 = no timeout (scl will be held low by the chip) 1 = timeout will occur after approximately 40 ms 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 87 of 171 ? 2016 dialog semiconductor table 97 : register map dac_ng_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000009c dac_ng_ct rl dac_ng_en reserved 0x0000009d dac_ng_set up_time reserved dac_ng_ram pdn_rate dac_ng_ram pup_rate dac_ng_setup_time 0x0000009e dac_ng_of f_thresh reserved dac_ng_ off_threshold 0x0000009f dac_ng_on _thresh reserved dac_ng_on_threshold table 98 : dac_ng_ctrl (page 0: 0x0000009c) bit mode symbol description reset 7 r/w dac_ng_en dac noise gate control 0 = dac noise gate is disabled 1 = dac noise gate is enabled 0x0 table 99 : dac_ng_setup_time (page 0: 0x0000009d) bit mode symbol description reset 3 r/w dac_ng_rampdn_rat e ramp down rate 0 = 0.88 ms/db 1 = 14.08 ms/db 0x0 2 r/w dac_ng_rampup_rat e ramp up rate 0 = 0.22 ms/db 1 = 0.0138 ms/db 0x0 1:0 r/w dac_ng_setup_time length of time for which the largest signal through the dacs must be below dac_ng_on_threshold for the noise gate to mute the data 0 = 256 samples 1 = 512 samples 2 = 1024 sam ples 3 = 2048 samples 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 88 of 171 ? 2016 dialog semiconductor table 100 : dac_ng_off_thresh (page 0: 0x0000009e) bit mode symbol description reset 2:0 r/w dac_ng_off_threshol d threshold above which the noise gate will deactivate 000 = - 102 db 001 = - 96 db 010 = - 90 db 011 = - 84 db 100 = - 78 db 101 = - 72 db 110 = - 66 db 111 = - 60 db 0x0 table 101 : dac_ng_on_thresh (page 0: 0x0000009f) bit mode symbol description reset 2:0 r/w dac_ng_on_threshol d threshold below which the noise gate will activate 000 = - 102 db 001 = - 96 db 010 = - 90 db 011 = - 84 db 100 = - 78 db 101 = - 72 db 110 = - 66 db 111 = - 60 db 0x0 table 99 : register map dai_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000008c dai_ctrl dai_en dai_ch_num dai_word_length dai_format 0x0000008d dai_tdm_ct rl dai_tdm_mod e_en dai_oe reserved dai_tdm_ch_en 0x0000008e dai_offset _lower dai_offset_lower 0x0000008f dai_offset _upper reserved dai_offset_upper 0x00000090 dai_clk_mo de dai_clk_en reserved dai_wclk_tri_ state dai_wclk_pol dai_clk_pol dai_bclks_per_wclk
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 89 of 171 ? 2016 dialog semiconductor table 103 : dai_ctrl (page 0: 0x0000008c) bit mode symbol description reset 7 r/w dai_en dai control 0 = dai disabled. no data transfer. 1 = dai enabled. input and output data channels can be enabled using dai_ch_num. 0x0 6:4 r/w dai_ch_num dai channel control 000 = no channels are enabled 001 = channel 1l enabled 010 = channel 1l and 1r enabled 011 = channel 1l, 1r and 2l enabled 100 = channel 1l, 1r, 2l and 2r enabled 101 to 111 = reserved 0x2 3:2 r/w dai_word_length dai data word length 00 = 16 bits per channel 01 = 20 bits per channel 10 = 24 bits per channel 11 = 32 bits per channel 0x2 1:0 r/w dai_format dai data format 00 = i2s mode 01 = left justified mode 10 = right justified mode 11 = dsp mode 0x0 table 104 : dai_tdm_ctrl (page 0: 0x0000008d) bit mode symbol description reset 7 r/w dai_tdm_mode_en dai tdm mode control. in tdm mode the output is high impedence when not actively driving data. this allows other devices to share the datout line. 0 = dai in normal mode 1 = dai in tdm mode 0x0 6 r/w dai_oe dai output control 0 = dai datout pin is high impedence 1 = dai datout pin is driven when required 0x1 3:0 r/w dai_tdm_ch_en dai tdm channel control bit 0: channel 1l bit 1: channel 1r bit 2: channel 2l bit 3: channel 2r on each bit 0 = channel is disabled 1 = channel is enabled 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 90 of 171 ? 2016 dialog semiconductor table 105 : dai_off set_lower (page 0: 0x0000008e) bit mode symbol description reset 7:0 r/w dai_offset_lower dai data offset with respect to wclk 0x0 = no offset relative to the normal formatting 0x1 = one bclk period offset relative to the normal formatting 0x2 = two bclk periods offset relative to the normal formatting n = n bclk period offset relative to the normal formatting 0x0 table 106 : dai_offset_upper (page 0: 0x0000008f) bit mode symbol description reset 2:0 r/w dai_offset_upper dai data offset with respect to wclk 000 = no offset relative to the normal formatting 001 = one bclk period offset relative to the normal formatting n = n bclk period offset relative to the normal formatting 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 91 of 171 ? 2016 dialog semiconductor table 107 : dai_clk_mode (page 0: 0x00000090) bit mode symbol description reset 7 r/w dai_clk_en dai master mode control 0 = slave mode (bclk/wclk inputs) 1 = master mode (bclk/wclk outputs) 0x0 4 r/w dai_wclk_tri_state wclk tri - state control 0 = wclk state set by the dai_clk_en (wclk is set as the output in master m ode, and as the input in slave mode) 1 = wclk forced as an input 0x0 3 r/w dai_wclk_pol dai word clock polarity control 0 = normal polarity 1 = inverted polarity 0x0 2 r/w dai_clk_pol dai b it clock polarity control 0 = normal polarity 1 = inverted polarity 0x0 1:0 r/w dai_bclks_per_wclk number of bclk cycles per wclk period in dai master mode 00 = 32 bclk cycles per wclk 01 = 64 bclk cycles per wclk 10 = 128 bclk cycles per wclk 11 = 256 bclk cycles per wclk 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 92 of 171 ? 2016 dialog semiconductor table 105 : register map dgs_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000054 dgs_trigge r reserved dgs_trigger_lvl 0x00000055 dgs_enable reserved dgs_enable 0x00000056 dgs_rise_f all reserved dgs_fall_coeff reserved dgs_rise_coeff 0x00000057 dgs_sync_ delay dgs_sync_delay 0x00000058 dgs_sync_ delay2 dgs_sync_delay2 0x00000059 dgs_sync_ delay3 reserved dgs_sync_delay3 0x0000005a dgs_levels dgs_signal_lvl reserved dgs_anticlip_lvl 0x0000005b dgs_gain_c trl reserved dgs_subr_en dgs_ramp_e n dgs_steps table 109 : dgs_trigger (page 0: 0x00000054) bit mode symbol description reset 5:0 r/w dgs_trigger_lvl dac gain swap (dgs) input - amplitude trigger level control. this sets the volume level at which all dgs steps are applied. 0x00 = 0 db 0x01 = - 1.5 db 0x02 = - 3 db continuing in - 1.5 db steps through... 0x24 = - 54 db (default) to... 0x3e = - 93 db 0x3f = - 94.5 db 0x24
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 93 of 171 ? 2016 dialog semiconductor table 110 : dgs_enable (page 0: 0x00000055) bit mode symbol description reset 1:0 r/w dgs_enable dac gain swap (dgs) channel control 0 = dac channel left 1 = dac channel right 0x0 table 111 : dgs_rise_fall (page 0: 0x00000056) bit mode symbol description reset 6:4 r/w dgs_fall_coeff control volume estimation leaky - integrator fall rate. this register sets the fraction of the input signal that is used to calculate the rolling average for all input channels in the dac gain swap (dgs) when the input signal is smaller than signal average. 000 = 1/4 001 = 1/16 010 = 1/64 011 = 1/256 100 = 1/1024 101 = 1/4096 1 10 = 1/16384 111 = 1/65536 0x5 2:0 r/w dgs_rise_coeff control volume estimation leaky - integrator rise rate. this register sets the fraction of the input signal that is used to calculate the rolling average for all input channels in the dac gain swap (dgs) when the current input is larger than current average. 001 = 1/1 (average == signal) 010 = 1/16 011 = 1/64 100 = 1/256 101 = 1/1024 110 = 1/4096 111 = 1/16384 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 94 of 171 ? 2016 dialog semiconductor table 112 : dgs_sync_delay (page 0: 0x00000057) bit mode symbol description reset 7:0 r/w dgs_sync_delay user - defined sync - delay measured in fs*8 clk periods. this delay is applied between digital and analogue gain updates to match the datapath delay through the dac from the point of digital gain application to the analogue gain application. the delay is measured from the start of the frame in which the digital gain is applied. 0xa3 table 113 : dgs_sync_delay2 (page 0: 0x00000058) bit mode symbol description reset 7:0 r/w dgs_sync_delay2 user - defined sync - delay measured in fs*8 clk periods (exactly as dgs_sync_delay), but this delay setting is applied when the data - delay has been reduced due to operating at faster sample rates of: 88/96k (non - low - power) 44/48k (low - power) this delay is applied between digital and analogue gain updates to match the datap ath delay through the dac from the point of digital gain application to the analogue gain application. the delay is measured from the start of the frame in which the digital gain is applied. the switch to this delay value is performed automatically. 0x31 table 114 : dgs_sync_delay3 (page 0: 0x00000059) bit mode symbol description reset 6:0 r/w dgs_sync_delay3 user - defined sync - delay measured in fs*16 clk periods (similar to dgs_sync_delay), but this delay setting is applied when the data - delay has been reduced due to operating in voice filter modes where the dgs operates on fs*2 data. this delay is applied between digital and analogue gain updates to match the dat apath delay through the dac from the point of digital gain application to the analogue gain application. the delay is measured from the start of the frame in which the digital gain is applied. 0x11
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 95 of 171 ? 2016 dialog semiconductor table 115 : dgs_levels (page 0: 0x0000005a) bit mode symbol description reset 7:4 r/w dgs_signal_lvl trigger level for application of gain. once input drops below this level, the dgs will start applying the calculated gain - swaps. 0000 = 0 db (swaps started immediately) 0001 = - 6 db 0010 = - 12 db continuing in - 6 db steps to... 1110 = - 86 db 1111 = - 90 db 0x0 2:0 r/w dgs_anticlip_lvl trigger level for the anti - clip feature. once input rises above this level, the dac gain swap (dgs) will turn off immediately, removing all steps to prevent clipping. this parameter should not need to be changed from the default. 000 = 0 db 001 = - 6 db 010 = - 12 db continuing in - 6 db steps to. .. 110 = - 36 db 111 = - 42 db 0x1 table 116 : dgs_gain_ctrl (page 0: 0x0000005b) bit mode symbol description reset 6 r/w dgs_subr_en dgs gain - subrange mode. if dac gain swapping (dgs) ramping is enabled, dgs normally ramps the gain in 1.5 db steps. setting this register field reduces the ramp step - size so there are no audible artifacts. 0 = gain - ramping is performed in 1.5 db steps 1 = gain - ramping is performed in m ore gradual steps without audible artifacts note that this register only has an effect if dgs_ramp_en = 1 0x1 5 r/w dgs_ramp_en dgs gain - ramping control 0 = ramping is disabled. the gain steps are applied immediately 1 = ramping is enabled. the gain steps are ramped in 1.5 db increments (or in 0.5 db steps if dgs_sub_en is set) 0x1 4:0 r/w dgs_steps maximum number of dac gain swap (dgs) steps of 1.5 db to apply. if sub - ranging is active, thi s setting still applies to the number of 1.5 db steps to apply, and not to the number of sub - ranging steps. 0x14
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 96 of 171 ? 2016 dialog semiconductor table 117 : register map dig_gain_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000f4 in_1l_gain reserved in_1l_digital_gain 0x000000f5 in_1r_gain reserved in_1r_digital_gain 0x000000f6 in_2l_gain reserved in_2l_digital_gain 0x000000f7 in_2r_gain reserved in_2r_digital_gain 0x000000f8 out_1l_gai n out_1l_digital_gain 0x000000f9 out_1r_gai n out_1r_digital_gain table 118 : in_1l_gain (page 0: 0x000000f4) bit mode symbol description reset 6:0 r/w in_1l_digital_gain in_1l digital gain control 000 0000 = - 83.25 db 000 0001 = - 82.5 db 000 0010 = - 81.75 db continuing in 0.75 db steps through... 110 1111 = 0 db to... 111 1110 = 11.25 db 111 1111 = 12 db 0x6f
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 97 of 171 ? 2016 dialog semiconductor table 119 : in_1r_gain (page 0: 0x000000f5) bit mode symbol description reset 6:0 r/w in_1r_digital_gain in_1r digital gain control 000 0000 = - 83.25 db 000 0001 = - 82.5 db 000 0010 = - 81.75 db continuing in 0.75 db steps through... 110 1111 = 0 db to... 111 1110 = 11.25 db 111 1111 = 12 db 0x6f table 120 : in_2l_gain (page 0: 0x000000f6) bit mode symbol description reset 6:0 r/w in_2l_digital_gain in_2l digital gain control 000 0000 = - 83.25 db 000 0001 = - 82.5 db 000 0010 = - 81.75 db continuing in 0.75 db steps through... 110 1111 = 0 db to... 111 1110 = 11.25 db 111 1111 = 12 db 0x6f table 121 : in_2r_gain (page 0: 0x000000f7) bit mode symbol description reset 6:0 r/w in_2r_digital_gain in_2r digital gain control 000 0000 = - 83.25 db 000 0001 = - 82.5 db 000 0010 = - 81.75 db continuing in 0.75 db steps through... 110 1111 = 0 db to... 111 1110 = 11.25 db 111 1111 = 12 db 0x6f
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 98 of 171 ? 2016 dialog semiconductor table 122 : out_1l_gain (page 0: 0x000000f8) bit mode symbol description reset 7:0 r/w out_1l_digital_gain out_1l digital gain control 0000 0000 = - 83.25 db 0000 0001 = - 82.5 db 0000 0010 = - 81.75 db continuing in 0.75 db steps through... 0110 1111 = 0 db to... 1111 1110 = +107.25 db 1111 1111 = +108 db 0x6f table 123 : out_1r_gain (page 0: 0x000000f9) bit mode symbol description reset 7:0 r/w out_1r_digital_gain out_1r digital gain control 0000 0000 = - 83.25 db 0000 0001 = - 82.5 db 0000 0010 = - 81.75 db continuing in 0.75 db steps through... 0110 1111 = 0 db to... 1111 1110 = 107.25 db 1111 1111 = 108 db 0 x6f table 121 : register map dmic_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000f0 dmic_1_ctr l dmic_1r_en dmic_1l_en reserved dmic_1_clk_r ate dmic_1_sam plephase dmic_1_data _sel 0x000000f1 dmic_2_ctr l dmic_ 2r_en dmic_2l_en reserved dmic_2_clk_r ate dmic_2_sam plephase dmic_2_data _sel
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 99 of 171 ? 2016 dialog semiconductor table 125 : dmic_1_ctrl (page 0: 0x000000f0) bit mode symbol description reset 7 r/w dmic_1r_en dmic_1 right channel control 0 = dmic_1 right channel is disabled 1 = dmic_1 right channel is enabled 0x0 6 r/w dmic_1l_en dmic_1 left channel control 0 = dmic_1 left channel is disabled 1 = dmic_1 left channel is enabled 0x0 2 r/w dmic_1_clk_rate dmic_1 clock control 0 = 3 mhz 1 = 1.5 mhz 0x0 1 r/w dmic_1_samplephas e dmic_1 data sampling phase 0 = sample on dmicclk edges 1 = sample between dmicclk edges 0x0 0 r/w dmic_1_data_sel dmic_1 data channel select 0 = rising edge = left. falling edge = right 1 = rising edge = right. falling edge = left 0x0 table 123 : dmic_2_ctrl (page 0: 0x000000f1) bit mode symbol description reset 7 r/w dmic_2r_en dmic_2 right channel control 0 = dmic_2 right channel is disabled 1 = dmic_2 right channel is enabled 0x0 6 r/w dmic_2l_en dmic_2 left channel control 0 = dmic_2 left channel is disabled 1 = dmic_2 left channel is enabled 0x0 2 r/w dmic_2_clk_rate dmic_2 clock control 0 = 3 mhz 1 = 1.5 mhz 0x0 1 r/w dmic_2_samplephas e dmic_2 data sampling phase 0 = sample on dmicclk edges 1 = sample between dmicclk edges 0x0 0 r/w dmic_2_data_sel dmic_2 data channel select 0 = rising edge = left. falling edge = right 1 = rising edge = right. falling edge = left 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 100 of 171 ? 2016 dialog semiconductor table 127 : register map env_track_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000004c env_track_ ctrl reserved integ_release reserved integ_attack table 128 : env_track_ctrl (page 0: 0x0000004c) bit mode symbol description reset 5:4 r/w integ_release sets the rate at which the input signal envelope is tracked as the signal gets smaller 00 = 1/4 01 = 1/16 10 = 1/256 11 = 1/65536 0x0 1:0 r/w integ_attack sets the rate at which the input signal envelope is tracked as the signal gets larger 00 = 1/4 01 = 1/16 10 = 1/256 11 = 1/65536 0x0 table 126 : register map hp_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000d0 hp_l_ctrl hp_l_amp_en hp_l_amp_m ute_en hp_l_amp_ra mp_en hp_l_amp_zc _en hp_l_amp_oe hp_l_amp_mi n_gain_en reserved 0x000000d1 hp_l_gain reserved hp_l_amp_gain 0x000000d2 hp_r_ctrl hp_r_amp_e n hp_r_amp_m ute_en hp_r_amp_ra mp_en hp_r_amp_zc _en hp_r_amp_o e hp_r_amp_m in_gain_en reserved 0x000000d3 hp_r_gain reserved hp_r_amp_gain 0x000000d4 hp_sngl_ct rl hp_amp_ster eo_detect_en hp_amp_load _detect_en reserved hpr_amp_loa d_detect_stat us hpl_amp_loa d_detect_stat us hp_amp_ster eo_detect_st atus 0x000000d5 hp_diff_ct rl reserved hp_amp_sing le_supply_en reserved hp_amp_diff_ mode_en 0x000000d7 hp_diff_un lock reserved hp_diff_unloc k
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 101 of 171 ? 2016 dialog semiconductor table 130 : hp_l_ctrl (page 0: 0x000000d0) bit mode symbol description reset 7 r/w hp_l_amp_en hp_l amplifier control 0 = headphone left amplifier disabled 1 = headphone right amplifier enabled 0x0 6 r/w hp_l_amp_mute_en hp_l amplifier mute control 0 = headphone left amplifier unmuted 1 = headphone left amplifier muted 0x1 5 r/w hp_l_amp_ramp_en hp_l amplifier gain ramping control 0 = gain changes are instant 1 = gain changes are ramped between old and new gain values note that this setting overrides zero crossing 0x0 4 r/w hp_l_amp_zc_en hp_l amplifier zero cross control 0 = gain changes are insta nt 1 = gain changes are performed when the data crosses zero note that this setting is overridden by the ramp setting 0x0 3 r/w hp_l_amp_oe hp_l amplfier output enabling control 0 = output is high impedence 1 = output is d riven 0x0 2 r/w hp_l_amp_min_gain _en hp_l amplifier gain held at the minimum value 0 = normal gain operation 1 = minimum gain only 0x0 table 131 : hp_l_gain (page 0: 0x000000d1) bit mode symbol description reset 5:0 r/w hp_l_amp_gain hp_l gain control in 1.5 db steps 00 0000 to 01 0100 = reserved 01 0101 = - 57.0 db 01 0110 = - 55.5 db 01 0111 = - 54.0 db continuing in 1.5 db steps through... 11 1011 = 0.0 db to 11 1101 = 3 db 11 1110 = 4.5 db 11 1111 = 6.0 db 0x3b
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 102 of 171 ? 2016 dialog semiconductor table 132 : hp_r_ctrl (page 0: 0x000000d2) bit mode symbol description reset 7 r/w hp_r_amp_en hp_r amplifier control 0 = headphone right amplifier disabled 1 = headphone right amplifier enabled 0x0 6 r/w hp_r_amp_mute_en hp_r amplifier mute control 0 = headphone right amplifier unmuted 1 = headphone right amplifier muted 0x1 5 r/w hp_r_amp_ramp_en hp_r amplifier gain ramping control 0 = gain changes are instant 1 = gain changes are ramped between old and new gain values note that this s etting overrides zero crossing 0x0 4 r/w hp_r_amp_zc_en hp_r amplifier zero cross control 0 = gain changes are instant 1 = gain changes are performed when the data crosses zero note that this setting is overridden by the r amp setting 0x0 3 r/w hp_r_amp_oe hp_r amplfier output enabling control 0 = output is high impedence 1 = output is driven 0x0 2 r/w hp_r_amp_min_gain _en hp_r amplifier gain held at the minimum value 0 = normal gain operation 1 = minimum gain only 0x0 table 133 : hp_r_gain (page 0: 0x000000d3) bit mode symbol description reset 5:0 r/w hp_r_amp_gain hp_r gain control in 1.5 db steps 00 0000 to 01 0100 = reserved 01 0101 = - 57.0 db 01 0110 = - 55.5 db 01 0111 = - 54.0 db continuing in 1.5 db steps through... 11 1011 = 0.0 db to 11 1101 = 3 db 11 1110 = 4.5 db 11 1111 = 6.0 db 0x3b
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 103 of 171 ? 2016 dialog semiconductor table 134 : hp_sngl_ctrl (page 0: 0x000000d4) bit mode symbol description reset 7 r/w hp_amp_stereo_dete ct_en enable the detection of stereo headphones 0x0 6 r/w hp_amp_load_detect _en enable the load detect function on both hpl and hpr. 0x0 2 r hpr_amp_load_detec t_status hpr load detect comparator status. 0 = no headphone load preset 1 = headphone load p resent 0x0 1 r hpl_amp_load_detec t_status hpl load detect comparator status 0 = no headphone load preset 1 = headphone load present 0x0 0 r hp_amp_stereo_dete ct_status hp stereo detect status 0 = mono 1 = stereo 0x0 table 135 : hp_diff_ctrl (page 0: 0x000000d5) bit mode symbol description reset 4 r/w hp_amp_single_sup ply_en control of single supply operation for the headphone amplifiers this enables headphone amplifier operation from a single supply, that is, with hpcsp connected to vdd, and with hpscn connected to gnd on the pcb 0 = charge pump mode 1 = single supply mode 0x0 0 r/w hp_amp_diff_mode_ en enables differential headphone output 0 = single - ended output 1 = differential output 0x0 table 136 : hp_diff_unlock (page 0: 0x000000d7) bit mode symbol description reset 0 - hp_diff_unlock controls access to the hp_amp_single_supply_en register. to unlock write access to hp_amp_single_supply_en, write 0xc3 to this address. 0xc3
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 104 of 171 ? 2016 dialog semiconductor hlpdet_jack, hlpdet_ctrl and hlpdet_test registers not valid for da7217 table 134 : register map hpldet_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000d8 hpldet_jac k hpldet_jack_ en hpldet_jack_thr hpldet_jack_debounce hpldet_jack_rate 0x000000d9 hpldet_ctr l hpldet_ disch arge_en reserved hpldet_hyst_ en hpldet_comp _inv 0x000000da hpldet_tes t reserved hpldet_comp _sts reserved table 138 : hpldet_jack (page 0: 0x000000d8) bit mode symbol description reset 7 r/w hpldet_jack_en accessory detect jack detection 0 = disabled 1 = enabled 0x0 6:5 r/w hpldet_jack_thr threshold level for jack detection measured as a percentage of vdd 00 = 84% 01 = 88% 10 = 92% 11 = 96% 0x0 4:3 r/w hpldet_jack_debounc e hpl jack detection debounce control. numb er of debounce measurements taken before a jack insertion is confirmed and the host is informed. debounce measurements are separated by the time defined by accdet_jack_rate, so it will take up to accdet_jack_rate*accdet_jack_deb to successfully determine a jack insertion. no debouncing is performed for removal. 00 = no debounce 01 = 2 10 = 3 11 = 4 0x1 2:0 r/w hpldet_jack_rate time between jack detection measurements when there is no jack or a 3 - pole jack is inserted 0 = 5 us 1 = 10 us 2 = 20 us 3 = 40 us 4 = 80 us 5 = 160 us 6 = 320 us 7 = 640 us 0x3
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 105 of 171 ? 2016 dialog semiconductor table 139 : hpldet_ctrl (page 0: 0x000000d9) bit mode symbol description reset 7 r/w hpldet_discharge_en control of automatic discharge of micbias on jack removal 0 = disabled 1 = enabled 0x0 1 r/w hpldet_hyst_en hpl detection hysteresis control 0 = disabled 1 = enabled 0x0 0 r/w hpldet_comp_inv hpl detector output inversion control setting this register causes the hpl detector comparator output signal tobe inverted 0 = not inverted 1 = inverted 0x0 table 140 : hpldet_test (page 0: 0x000000da) bit mode symbol description reset 4 r hpldet_comp_sts hpldet comparator output 0 = no headphone detected 1 = headphone detected 0x0 table 138 : register map in_filter_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000018 in_1l_filter _ctrl in_1l_filter_e n in_1l_mute_e n in_1l_ramp_e n reserved 0x00000019 in_1r_filte r_ctrl in_1r_filter_e n in_1r_mute_ en in_1r_ramp_ en reser ved 0x0000001a in_2l_filter _ctrl in_2l_filter_e n in_2l_mute_e n in_2l_ramp_e n reserved 0x0000001b in_2r_filte r_ctrl in_2r_filter_e n in_2r_mute_ en in_2r_ramp_ en reserved
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 106 of 171 ? 2016 dialog semiconductor table 142 : in_1l_filter_ctrl (page 0: 0x00000018) bit mode symbol description reset 7 r/w in_1l_filter_en in_1l_filter control 0 = in_1l_filter disabled 1 = in_1l_filter enabled 0x0 6 r/w in_1l_mute_en in_1l_filter mute control 0 = in_1l_filter unmuted 1 = in_1l_filter muted 0x0 5 r/w in_1l_ramp_en in_1l_filter gain ramping control 0 = ramping is disabled. the gain steps are applied immediately. 1 = ramping is enabled. 0x0 table 143 : in_1r_filter_ctrl (page 0: 0x00000019) bit mode symbol description reset 7 r/w in_1r_filter_en in_1r_filter control 0 = in_1r_filter disabled 1 = in_1r_filter enabled 0x0 6 r/w in_1r_mute_en in_1r_filter mute control 0 = in_1r_filter unmuted 1 = in_1r_filter muted 0x0 5 r/w in_1r_ramp_en in_1r_filter gain ramping control 0 = ramping is disabled. the gain steps are applied immediately. 1 = ramping is enabled. 0x0 table 141 : in_2l_filter_ctrl (page 0: 0x0000001a) bit mode symbol description reset 7 r/w in_2l_filter_en in_2l_filter control 0 = in_2l_filter disabled 1 = in_2l_filter enabled 0x0 6 r/w in_2l_mute_en in_2l_filter mute control 0 = in_2l_filter unmuted 1 = in_2l_filter muted 0x0 5 r/w in_2l_ramp_en in_2l_filter gain ramping control 0 = ramping is disabled. the gain steps are applied immediately. 1 = ramping is enabled. 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 107 of 171 ? 2016 dialog semiconductor table 145 : in_2r_filter_ctrl (page 0: 0x0000001b) bit mode symbol description reset 7 r/w in_2r_filter_en in_2r_filter control 0 = in_2r_filter disabled 1 = in_2r_filter enabled 0x0 6 r/w in_2r_mute_en in_2r_filter mute control 0 = in_2r_filter unmuted 1 = in_2r_filter muted 0x0 5 r/w in_2r_ramp_en in_2r_filter gain ramping control 0 = ramping is disabled. the gain steps are applied immediately. 1 = ramping is enabled. 0x0 table 143 : register map in_hpf_filter_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000bc in_1_hpf_fil ter_ctrl in_1_hpf_en reserved in_1_audio_hpf_corner in_1_voice_e n in_1_voice_hpf_corner 0x000000bd in_2_hpf_fil ter_ctrl in_2_hpf_en reserved in_2_audio_hpf_corner in_2_voice_e n in_2_voice_hpf_corner
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 108 of 171 ? 2016 dialog semiconductor table 147 : in_1_hpf_filter_ctrl (page 0: 0x000000bc) bit mode symbol description reset 7 r/w in_1_hpf_en adc high - pass filter control 0 = adc high - pass filter disabled 1 = adc high - pass filter enabled 0x1 5:4 r/w in_1_audio_hpf_corn er 3 db cut - off control for the high pass filter at 48 khz, the 3 db cut - off is at: 00 = 2 hz 01 = 4 hz 10 = 8 hz 11 = 16 hz for other sample rates the corner cut - off points scale proprtionately 0x0 3 r/w in_1_voice_en adc voice filter control 0 = adc voice filter disabled 1 = adc voice filter enabled 0x0 2:0 r/w in_1_voice_hpf_corn er 3 db cut - off control for the high - pass voice filter at 8 khz, the 3 db cut - off is at: 0 00 = 2.5 hz 001 = 25 hz 010 = 50 hz 011 = 100 hz 100 = 150 hz 101 = 200 hz 110 = 300 hz 111 = 400 hz 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 109 of 171 ? 2016 dialog semiconductor table 148 : in_2_hpf_filter_ctrl (page 0: 0x000000bd) bit mode symbol description reset 7 r/w in_2_hpf_en adc high - pass filter control 0 = adc high - pass filter disabled 1 = adc high - pass filter enabled 0x1 5:4 r/w in_2_audio_hpf_corn er 3 db cut - off control for the high pass filter at 48 khz, the 3 db cut - off is at: 00 = 2 hz 01 = 4 hz 10 = 8 hz 11 = 16 hz for other sample rates the corner cut - off points scale proprtionately 0x0 3 r/w in_2_voice_en adc voice filter control 0 = adc voice filte r disabled 1 = adc voice filter enabled 0x0 2:0 r/w in_2_voice_hpf_corn er 3 db cut - off control for the voice filter at 8 khz, the 3 db cut - off is at: 000 = 2.5 hz 001 = 25 hz 010 = 50 hz 011 = 100 hz 100 = 150 hz 101 = 200 hz 110 = 300 hz 111 = 400 hz 0x0 table 146 : register map irq_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000ec event_stat us hpldet_jack_ sts reserved 0x000000ed event hpldet_jack_ event reserved lvl_det_event 0x000000ee event_mas k hpldet_jack_ event_irq_ms k reserved lvl_det_event _msk
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 110 of 171 ? 2016 dialog semiconductor table 150 : event_status (page 0: 0x000000ec) bit mode symbol description reset 7 r hpldet_jack_sts status of jack insertion 0 - no jack inserted 1 - jack inserted 0x0 table 151 : event (page 0: 0x000000ed) bit mode symbol description reset 7 r/w hpldet_jack_event jack event, write 1 to clear 0x0 0 r/w lvl_det_event level detect event 0x0 table 152 : event_mask (page 0: 0x000000ee) bit mode symbol description reset 7 r/w hpldet_jack_event_ir q_msk mask hpl jack_event from nirq pin 0 = hpl jack interrupts are sent to the nirq pin 1 = no hpl jack interrupts are sent to the nirq pin 0x0 0 r/w lvl_det_event_msk level detect event mask 0 = level detect interrupts are sent to the nirq pin 1 = no level detect interrupts are sent to the nirq pin 0x0 table 153 : register map levels_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000e0 io_ctrl reserved io_voltage_le vel 0x000000e1 ldo_ctrl ldo_en reserved ldo_level_select reserved table 154 : io_ctrl (page 0: 0x000000e0) bit mode symbol description reset 0 r/w io_voltage_level digital i/o voltage range control 0 = 2.5 to 3.6 v 1 = 1.5 to 2.5 v 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 111 of 171 ? 2016 dialog semiconductor table 155 : ldo_ctrl (page 0: 0x000000e1) bit mode symbol description reset 7 r/w ldo_en audio sub - system digital ldo control. the master bias must be enabled for the ldo to operate. 0 = ldo bypassed (digital operates from ldo5) 1 = ldo active 0x0 5:4 r/w ldo_level_select audio sub - system digital ldo level select 00 = 1.05 v 01 = 1.10 v 10 = 1.20 v 11 = 1.40 v 0x0 table 156 : register map lvl_det_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000050 lvl_det_ct rl reserved lvl_det_en 0x00000051 lvl_det_le vel reserved lvl_det_level table 157 : lvl_det_ctrl (page 0: 0x00000050) bit mode symbol description reset 3:0 r/w lvl_det_en level detect channel enable bit 0 = channel 1 left bit 1 = channel 1 right bit 2 = channel 2 left bit 3 = channel 2 right for all bits, 0 = channel is disabled 1 = channel is enabled 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 112 of 171 ? 2016 dialog semiconductor table 158 : lvl_det_level (page 0: 0x00000051) bit mode symbol description reset 6:0 r/w lvl_det_level sets the threshold above which the alc enters anti - clip operation. the threshold represented by this field setting, where x is the value of the bit - field, is x = ((x+1)/128) fs 000 0000 = 0.0078 fs 000 0001 = 0.0156 fs 000 0010 = 0.0234 fs continuing in 0.0078 fs steps to... 111 1101 = 0.9844 fs 111 1110 = 0.9922 fs 111 1111 = 1.0000fs 0x7f table 156 : register map mic_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000b4 mic_1_ctrl mic_1_amp_ en mic_1_amp_ mute_en reserved 0x000000b5 mic_1_gain reserved mic_1_amp_gain 0x000000b7 mic_1_sele ct reserved mic_1_amp_in_sel 0x000000b8 mic_2_ctrl mic_2_amp_ en mic_2_amp_ mute_en reserved 0x000000b9 mic_2_gain reserved mic_2_amp_gain 0x000000bb mic_2_sele ct reserved mic_2_amp_in_sel table 160 : mic_1_ctrl (page 0: 0x000000b4) bit mode symbol description reset 7 r/w mic_1_amp_en mic_1 amplifier control 0 = mic_1 amplifier is disabled 1 = mic_1 amplifier is enabled 0x0 6 r/w mic_1_amp_mute_e n mic_1 amplifier mute control 0 = mic_1 amplifier unmuted 1 = mic_1 amplifier muted 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 113 of 171 ? 2016 dialog semiconductor table 161 : mic_1_gain (page 0: 0x000000b5) bit mode symbol description reset 2:0 r/w mic_1_amp_gain mic_1 amplifier gain control 000 = - 6 db 001 = 0 db 010 = 6 db 011 = 12 db 100 = 18 db 101 = 24 db 110 = 30 db 111 = 36 db 0x1 table 162 : mic_1_select (page 0: 0x000000b7) bit mode symbol description reset 1:0 r/w mic_1_amp_in_sel mic_1 input source select 00 = differential 01 = mic_1_p single - ended 10 = mic_1_n single - ended 11 = reserved 0x0 table 163 : mic_2_ctrl (page 0: 0x000000b8) bit mode symbol description reset 7 r/w mic_2_amp_en mic_2 amplifier control 0 = mic_2 amplifier is disabled 1 = mic_2 amplifier is enabled 0x0 6 r/w mic_2_amp_mute_e n mic_2 amplifier mute control 0 = mic_2 amplifier is unmuted 1 = mic_2 amplifier is muted 0x1 table 164 : mic_2_gain (page 0: 0x000000b9) bit mode symbol description reset 2:0 r/w mic_2_amp_gain mic_2 amplifier gain control 000 = - 6 db 001 = 0 db 010 = 6 db 011 = 12 db 100 = 18 db 101 = 24 db 110 = 30 db 111 = 36 db 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 114 of 171 ? 2016 dialog semiconductor table 165 : mic_2_select (page 0: 0x000000bb) bit mode symbol description reset 1:0 r/w mic_2_amp_in_sel mic_2 input source select 00 = differential 01 = mic_1_p single - ended 10 = mic_1_n single - ended 11 = reserved 0x0 table 163 : register map micbias_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000fc micbias_ct rl micbias_2_lp _mode micbias_2_level micbias_1_lp _mode micbias_1_level 0x000000fd micbias_en reserved micbias_2_e n reserved micbias_1_e n
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 115 of 171 ? 2016 dialog semiconductor table 164 : micbias_ctrl (page 0: 0x000000fc) bit mode symbol description reset 7 r/w micbias_2_lp_mode micbias2 low - power mode control 0 = micbias2 low - power mode disabled 1 = micbias2 low - power mode enabled note that the microphone bias power mode can only be changed while the associated micbias circuit is disabled (micbias_2_en = 0) 0x0 6:4 r/w micbias_2_level microphone bias 2 level control 000 = 1.6 v 001 = 1.8 v 010 = 2.0 v 011 = 2.2 v 100 = 2.4 v 101 = 2.6 v 110 = 2.8 v 111 = 3.0 v note that the microphone bias level can only be changed while the associated micbias circuit is disabled (micbias_2_en = 0) 0x0 3 r/w micbias_1_lp_mode micbias1 low - power mode control 0 = micbias1 low - power mode disabled 1 = micbias1 low - power mode enabled note that the microphone bias power mode can only be changed while the associated micbias circuit is disabled (micbias_1_en = 0) 0x0 2:0 r/w micbias_1_level microphone bias 1 level control 000 = 1.6 v 001 = 1.8 v 010 = 2.0 v 011 = 2.2 v 100 = 2.4 v 101 = 2.6 v 110 = 2.8 v 111 = 3.0 v note that the microphone bias level can only be changed while the associated micbias c ircuit is disabled (micbias_1_en = 0) 0x0 table 168 : micbias_en (page 0: 0x000000fd) bit mode symbol description reset 4 r/w micbias_2_en microphone bias 2 control 0 = micbias_2 is disabled 1 = micbias_2 is enabled 0x0 0 r/w micbias_1_en microphone bias 1 control 0 = micbias_1 is disabled 1 = micbias_1 is enabled 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 116 of 171 ? 2016 dialog semiconductor table 166 : register map mixin_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000002c mixin_1_ctr l mixin_1_amp _en mixin_1_amp _mute_en mixin_1_amp _ramp_en mixin_1_amp _zc_en mixin_1_mix _sel reserved 0x0000002d mixin_1_gai n reserved mixin_1_amp_gain 0x0000002e mixin_2_ctr l mixin_2_amp _en mixin_2_amp _mute_en mixin_2_amp _ramp_en mixin_2_amp _zc_en mixin_2_mix _sel reserved 0x0000002f mixin_2_gai n reserved mixin_2_amp_gain table 170 : mixin_1_ctrl (page 0: 0x0000002c) bit mode symbol description reset 7 r/w mixin_1_amp_en mixin_1 amplifier control 0 = amplifier disabled 1 = amplifier enabled 0x0 6 r/w mixin_1_amp_mute_ en mixin_1 amplifier mute control 0 = amplifier unmuted 1 = amplifier muted 0x1 5 r/w mixin_1_amp_ramp_ en mixin_1 amplifier gain ramping control. gain ramping overrides the zero crossing setting. 0 = ramping is disabled. the gain st eps are applied immediately. 1 = ramping is enabled 0x0 4 r/w mixin_1_amp_zc_en mixin_1 amplifier zero cross control. when set, gain changes are applied only when the signal crosses zero. 0 = gain changes are instant 1 = g ain changes are performed when the signal crosses zero 0x0 3 r/w mixin_1_mix_sel mixin_1 amplifier control 0 = mixin_1 amplifier is disabled 1 = mixin_1 amplifier is enabled 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 117 of 171 ? 2016 dialog semiconductor table 168 : mixin_1_gain (page 0: 0x0000002d) bit mode symbol description reset 3:0 r/w mixin_1_amp_gain mixin_1_amp gain control 0000 = - 4.5 db 0001 = - 3.0 db 0010 = - 1.5 db continuing in 1.5 db steps to 1110 = 16.5 db 1111 = 18.0 db 0x3 table 172 : mixin_2_ctrl (page 0: 0x0000002e) bit mode symbol description reset 7 r/w mixin_2_amp_en mixin_2 amplifier control 0 = mixin_2 amplifier disabled 1 = mixin_2 amplifier enabled 0x0 6 r/w mixin_2_amp_mute_ en mixin_2 amplifier mute control 0 = mixin_2 amplifier unmuted 1 = mixin_2 amplifier muted 0x1 5 r/w mixin_2_amp_ramp_ en mixin_2 amplifier gain ramping control. gain ramping overrides the zero crossing setting. 0 = ramping is disabled. the gain steps are applied immediately. 1 = ramping is enabled 0x0 4 r/w mixin_2_amp_zc_en mixin_2 amplifier zero cross control. when set, gain changes are applied only when the signal crosses zero. 0 = gain changes are instant 1 = gain changes are performed when the signal crosses zero 0x0 3 r/w mixin_2_mix_sel mixin_2 mixer enable. 0 = mixin_2 mixer is disabled 1 = mixin_2 mixer is enabled 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 118 of 171 ? 2016 dialog semiconductor table 173 : mixin_2_gain (page 0: 0x0000002f) bit mode symbol description reset 3:0 r/w mixin_2_amp_gain mixin_2_amp gain control 0000 = - 4.5 db 0001 = - 3.0 db 0010 = - 1.5 db continuing in 1.5 db steps to 1110 = 16.5 db 1111 = 18.0 db 0x3 table 171 : register map mixout_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000cc mixout_l_c trl mixout_l_am p_en reserved 0x000000cd mixout_l_g ain reserved mixout_l_amp_gain 0x000000ce mixout_r_c trl mixout_r_am p_en reserved 0x000000cf mixout_r_g ain reserved mixout_r_amp_gain table 175 : mixout_l_ctrl (page 0: 0x000000cc) bit mode symbol description reset 7 r/w mixout_l_amp_en mixout_l mixer amplifier control 0 = disabled 1 = enabled 0x0 table 176 : mixout_l_gain (page 0: 0x000000cd) bit mode symbol description reset 1:0 r/w mixout_l_amp_gain mixout_l gain control 00 = reserved 01 = - 1.0 db 10 = - 0.5 db 11 = 0.0 db 0x3
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 119 of 171 ? 2016 dialog semiconductor table 177 : mixout_r_ctrl (page 0: 0x000000ce) bit mode symbol description reset 7 r/w mixout_r_amp_en mixout_r mixer amplifier control 0 = disabled 1 = enabled 0x0 table 178 : mixout_r_gain (page 0: 0x000000cf) bit mode symbol description reset 1:0 r/w mixout_r_amp_gain mixout_r gain control 00 = reserved 01 = - 1.0 db 10 = - 0.5 db 11 = 0.0 db 0x3 table 176 : register map out_filter_config_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000024 out_1_hpf_ filter_ctrl out_1_hpf_e n reserved out_1_audio_hpf_corner out_1_voice_ en out_1_voice_hpf_corner 0x00000025 out_1_eq_1 2_filter_ct rl out_1_eq_band2 out_1_eq_band1 0x00000026 out_1_eq_3 4_filter_ct rl out_1_eq_band4 out_1_eq_band3 0x00000027 out_1_eq_5 _filter_ctr l out_1_eq_en reserved out_1_eq_band5 0x00000028 out_1_biq_5 stage_ctrl out_1_biq_5s tage_filter_en out_1_biq_5s tage_mute_e n reserved 0x00000029 out_1_biq_5 stage_data out_1_biq_5stage_data 0x0000002a out_1_biq_5 stage_add r reserved out_1_biq_5stage_addr
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 120 of 171 ? 2016 dialog semiconductor table 180 : out_1_hpf_filter_ctrl (page 0: 0x00000024) bit mode symbol description reset 7 r/w out_1_hpf_en output audio high pass filter control 0 = disabled 1 = enabled 0x1 5:4 r/w out_1_audio_hpf_cor ner audio hpf 3 db cut - off control for the audio hpf at 48 khz sample rate, the 3 db cut - off is at: 00 = 2 hz 01 = 4 hz 10 = 8 hz 11 = 16 hz for other sample rates, the corner cut - off points scale proportionately 0x0 3 r/w out_1_voice_en output voice high pass filter control 0 = disabled 1 = enable 0x0 2:0 r/w out_1_voice_hpf_cor ner 3db cut - off for the voice hpf at 8 khz sample rate, the 3 db cut - off is at: 000 = 2.5 hz 001 = 25 hz 010 = 50 hz 011 = 100 hz 100 = 150 hz 101 = 200 hz 110 = 300 hz 111 = 400 hz for other sample rates, the corner cut - off points scale proportionately 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 121 of 171 ? 2016 dialog semiconductor table 181 : out_1_eq_12_filter_ctrl (page 0: 0x00000025) bit mode symbol description reset 7:4 r/w out_1_eq_band2 gain control for the band 2 of the 5 - band eq 0000 = - 10.5db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps thr ough 0111 = 0 db to... 1101 = 9.0 db 1110 = 10.5 db 1111 = 12.0 db 0x7 3:0 r/w out_1_eq_band1 gain control for the band 1 of the 5 - band eq 0000 = - 10.5db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to... 1101 = 9.0 db 1110 = 10.5 db 1111 = 12.0 db 0x7
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 122 of 171 ? 2016 dialog semiconductor table 182 : out_1_eq_34_filter_ctrl (page 0: 0x00000026) bit mode symbol description reset 7:4 r/w out_1_eq_band4 gain control for the band 4 of the 5 - band eq 0000 = - 10.5db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to... 1101 = 9.0 db 1110 = 10.5 db 1111 = 12.0 db 0x7 3:0 r/w out_1_eq_band3 gain control for the band 3 of the 5 - band eq 0000 = - 10.5db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to... 1101 = 9.0 db 1110 = 10.5 db 1111 = 12.0 db 0x7 table 183 : out_1_eq_5_filter_ctrl (page 0: 0x00000027) bit mode symbol description reset 7 r/w out_1_eq_en 5 - band eq control. note that when enabled, the 5 - band eq will apply a 12 db attenuation, which can be compensated by outfilt digital gain 0 = 5 - band eq disabled 1 = 5 - band eq enabled 0x0 3:0 r/w out_1_eq_band5 gain control for the band 5 of the 5 - band eq 0000 = - 10.5db 0001 = - 9.0 db 0010 = - 7.5 db continuing in 1.5 db steps through 0111 = 0 db to... 1101 = 9.0 db 1110 = 10.5 db 1111 = 12.0 db 0x7
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 123 of 171 ? 2016 dialog semiconductor table 184 : out_1_biq_5stage_ctrl (page 0: 0x00000028) bit mode symbol description reset 7 r/w out_1_biq_5stage_fil ter_en 5 - stage biquad filter control 0 = 5 - stage biq filter disabled 1 = 5 - stage biq filter enabled 0x0 6 r/w out_1_biq_5stage_m ute_en 5 - stage biquad filter mute control 0 = 5 - stage biq filter unmuted 1 = 5 - stage biq filter muted 0x1 table 185 : out_1_biq_5stage_data (page 0: 0x00000029) bit mode symbol description reset 7:0 r/w out_1_biq_5stage_d ata data to be written to the coefficient registers of the 5 - stage biquad filter 0x0 table 183 : out_1_biq_5stage_addr (page 0: 0x0000002a) bit mode symbol description reset 5:0 r/w out_1_biq_5stage_a ddr address of the 5 - stage biquad coefficient register even numbered addresses in this register field write the lower byte of the 16 - bit cooefficient, and odd numbered addre sses write the upper byte of the 16 - bit cooefficient a write to the biq_addr register triggers a write of the data 0x0 table 184 : register map out_filter_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000020 out_1l_filt er_ctrl out_1l_filter_ en out_1l_mute_ en out_1l_ramp _en out_1l_subra nge_en out_1l_biq_5 stage_sel reserved 0x00000021 out_1r_filt er_ctrl out_1r_filter_ en out_1r_mute _en out_1r_r amp _en out_1r_subra nge_en out_1r_biq_5 stage_sel reserved
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 124 of 171 ? 2016 dialog semiconductor table 185 : out_1l_filter_ctrl (page 0: 0x00000020) bit mode symbol description reset 7 r/w out_1l_filter_en dac_l control 0 = dac_l disabled 1 = dac_l enabled 0x0 6 r/w out_1l_mute_en dac_l mute control 0 = dac_l unmuted 1 = dac_l muted 0x1 5 r/w out_1l_ramp_en dac_l digital gain - ramping control 0 = ramping is disabled. the gain steps are applied immediately. 1 = ramping is enabled. 0x0 4 r/w out_1l_subrange_en dac_l gain - subrange m ode. this register only has an effect if out_1l_ramp_en is set if dac _l digital gain ramping is enabled (out_1l_ramp_en = 1), and this subranging register field is also set, the ramping process will step though much finer gain increments. 0 = gain - ramping do es not use the intermediate subrange steps 1 = gain - ramping uses the intermediate subrange steps 0x0 3 r/w out_1l_biq_5stage_s el dac_l 5 - stage biquad left filter control 0 = 5 - stage biquad left filter not selected 1 = 5 - stage biquad left filter selected 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 125 of 171 ? 2016 dialog semiconductor table 189 : out_1r_filter_ctrl (page 0: 0x00000021) bit mode symbol description reset 7 r/w out_1r_filter_en dac_r control 0 = dac_r disabled 1 = dac_r enabled 0x0 6 r/w out_1r_mute_en dac_r mute control 0 = dac_r unmuted 1 = dac_r muted 0x1 5 r/w out_1r_ramp_en dac_r digital gain - ramping control 0 = ramping is disabled. the gain steps are applied immediately. 1 = ramping is enabled. 0x0 4 r/w out_1r_subrange_en dac_r gain - subrange mode. this register only has an effect if out_1r_ramp_en is set if dac _r digital gain ra mping is enabled (out_1r_ramp_en = 1), and this subranging register field is also set, the ramping process will step though much finer gain increments. 0 = gain - ramping does not use the intermediate subrange steps 1 = gain - ramping uses the intermediate su brange steps 0x0 3 r/w out_1r_biq_5stage_s el dac_r 5 - stage biquad right filter control 0 = 5 - stage biquad right filter not selected 1 = 5 - stage biquad right filter selected 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 126 of 171 ? 2016 dialog semiconductor table 187 : register map pll_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000091 pll_ctrl pll_mode reserved pll_mclk_sqr _en reserved pll_indiv 0x00000092 pll_frac_t op reserved pll_fbdiv_frac_top 0x00000093 pll_frac_b ot pll_fbdiv_frac_bot 0x00000094 pll_intege r reserved pll_fbdiv_integer 0x00000095 pll_status pll_srm_status 0x00000098 pll_refosc _cal pll_refosc_ca l_en pll_refosc_ca l_start reserved pll_refosc_cal_ctrl table 191 : pll_ctrl (page 0: 0x00000091) bit mode symbol description reset 7:6 r/w pll_mode pll mode control 00 = bypass - pll disabled, and the system clock is mclk (after input divider) 01 = normal - pll enabled, the system clock is a fixed multiple of mclk 10 = srm - pll enabled, and the system clock tracks wclk 11 = reserved 0x0 4 r/w pll_mclk_sqr_en pll mclk clock - squarer circuit control 0 = clock - squarer disabled 1 = clock - squarer enabled 0x0 2:0 r/w pll_indiv pll reference input clock (mclk) control 000 = 2 to 4.5 mhz 001 = 4.5 to 9 mhz 010 = 9 to 18 mhz 011 = 18 to 36 mhz 100 = 36 to 54 mhz 101 to 111 = reserved 0x4
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 127 of 171 ? 2016 dialog semiconductor table 192 : pll_frac_top (page 0: 0x00000092) bit mode symbol description reset 4:0 r/w pll_fbdiv_frac_top pll fractional division value (top bits) 0x0 table 193 : pll_frac_bot (page 0: 0x00000093) bit mode symbol description reset 7:0 r/w pll_fbdiv_frac_bot pll fractional division value (bottom bits) 0x0 table 194 : pll_integer (page 0: 0x00000094) bit mode symbol description reset 6:0 r/w pll_fbdiv_integer pll integer division value. writing to this register causes the entire pll_fbdiv value (pll_integer, pll_frac_top, pll_frac_bot) to be updated. 0x20 table 195 : pll_status (page 0: 0x00000095) bit mode symbol description reset 7:0 r pll_srm_status pll/srm status the eight bits represent: bit 0 = mclk status bit 1 = unused bit 2 = unused bit 3 = pll lock bit 4 = pll/srm active bit 5 = unused bit 6 = unused bit 7 = srm lock for each bit position: 0 = inactive or invalid 1 = active or valid 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 128 of 171 ? 2016 dialog semiconductor table 196 : pll_refosc_cal (page 0: 0x00000098) bit mode symbol description reset 7 r/w pll_refosc_cal_en reference oscillator calibration control 0 = reference oscillator calibration block is disabled 1 = reference oscillator calibration block is enabled this register does not control whether or not the reference oscillator runs. the reference oscillator always runs when it is required, that is, when there is no valid mclk detected and the device is not in standby mode. 0x0 6 r/w pll_refosc_cal_start reference oscillator calibration start control 0 = do not trigger the reference oscillator calibration 1 = trigger the reference oscillator calibration 0x0 4:0 r pll_refosc_cal_ctrl reference os cillator control value. this read - only field contains the calibration data for the reference oscillator once it has been calibrated. 0x0 table 197 : register map references_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000dc reference s reserved bias_en reserved table 198 : references (page 0: 0x000000dc) bit mode symbol description reset 3 r/w bias_en master bias control 0 = master bias disabled 1 = master bias enabled 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 129 of 171 ? 2016 dialog semiconductor table 196 : register map router_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x0000005c drouting_o utdai_1l reserved outdai_1l_src 0x0000005d dmix_outda i_1l_infilt_1 l_gain reserved outdai_1l_infilt_1l_gain 0x0000005e dmix_outda i_1l_infilt_1 r_gain reserved outdai_1l_infilt_1r_gain 0x0000005f dmix_outda i_1l_infilt_2 l_gain reserved outd ai_1l_infilt_2l_gain 0x00000060 dmix_outda i_1l_infilt_2 r_gain reserved outdai_1l_infilt_2r_gain 0x00000061 dmix_outda i_1l_toneg en_gain reserved outdai_1l_tonegen_gain 0x00000062 dmix_outda i_1l_indai_1 l_gain reserved outdai_1l_indai_1l_gain 0x00000063 dmix_outda i_1l_indai_1 r_gain reserved outdai_1l_indai_1r_gain 0x00000064 drouting_o utdai_1r reserved outdai_1r_src 0x00000065 dmix_outda i_1r_infilt_ 1l_gain reserved outdai_1r_infilt_1l_gain 0x00000066 dmix_outda i_1r_infilt_ 1r_gain reserved outdai_1r_infilt_1r_gain 0x00000067 dmix_outda i_1r_infilt_ 2l_gain reserved outdai_1r_infilt_2l_gain
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 130 of 171 ? 2016 dialog semiconductor address name # 7 6 5 4 3 2 1 0 register page 0 0x00000068 dmix_outda i_1r_infilt_ 2r_gain reserved outdai_1r_infilt_2r_gain 0x00000069 dmix_outda i_1r_toneg en_gain reserved outdai_1r_tonegen_gain 0x0000006a dmix_outda i_1r_indai_1 l_gain reserved outdai_1r_indai_1l_gain 0x0000006b dmix_outda i_1r_indai_1 r_gain reserved outdai_1r_indai_1r_gain 0x0000006c drouting_o utfilt_1l reserved outfilt_1l_src 0x0000006d dmix_outfil t_1l_infilt_ 1l_gain reserved outfilt_1l_infilt_1l_gain 0x0000006e dmix_outfil t_1l_infilt_ 1r_gain reserved outfilt_1l_infilt_1r_gain 0x0000006f dmix_outfil t_1l_infilt_ 2l_gain reserved outfilt_1l_infilt_2l_gain 0x00000070 dmix_outfil t_1l_infilt_ 2r_gain reserved outfilt_1l_infilt_2r_gain 0x00000071 dmix_outfil t_1l_toneg en_gain reserved outfilt_1l_tonegen_gain 0x00000072 dmix_outfil t_1l_indai_1 l_gain reserved outfilt_1l_indai_1l_gain 0x00000073 dmix_outfil t_1l_indai_1 r_gain reserved outfilt_1l_indai_1r_gain 0x00000074 drouting_o utfilt_1r reserved outfilt_1r_src
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 131 of 171 ? 2016 dialog semiconductor address name # 7 6 5 4 3 2 1 0 register page 0 0x00000075 dmix_outfil t_1r_infilt_ 1l_gain reserved outfilt_1r_infilt_1l_gain 0x00000076 dmix_outfil t_1r_infilt_ 1r_gain reserved outfilt_1r_infilt_1r_gain 0x00000077 dmix_outfil t_1r_infilt_ 2l_gain reserved outfilt_1r_infilt_2l_gain 0x00000078 dmix_outfil t_1r_infilt_ 2r_gain reserved outfilt_1r_infilt_2r_gain 0x00000079 dmix_outfil t_1r_toneg en_gain reserved outfilt_1r_tonegen_gain 0x0000007a dmix_outfil t_1r_indai_ 1l_gain reserved outfilt_1r_indai_1l _gain 0x0000007b dmix_outfil t_1r_indai_ 1r_gain reserved outfilt_1r_indai_1r_gain 0x0000007c drouting_o utdai_2l reserved outdai_2l_src 0x0000007d dmix_outda i_2l_infilt_1 l_gain reserved outdai_2l_infilt_1l_gain 0x0000007e dmix_outda i_2l_infilt_1 r_gain reserved outdai_2l_infilt_1r_gain 0x0000007f dmix_outda i_2l_infilt_2 l_gain reserved outdai_2l_infilt_2l_gain 0x00000080 dmix_outda i_2l_infil t_2 r_gain reserved outdai_2l_infilt_2r_gain 0x00000081 dmix_outda i_2l_toneg en_gain reserved outdai_2l_tonegen_gain
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 132 of 171 ? 2016 dialog semiconductor address name # 7 6 5 4 3 2 1 0 register page 0 0x00000082 dmix_outda i_2l_indai_1 l_gain reserved outdai_2l_indai_1l_gain 0x00000083 dmix_outda i_2l_indai_1 r_gain reserved outdai_2l_indai_1r_gain 0x00000084 drouting_o utdai_2r reserved outdai_2r_src 0x00000085 dmix_outda i_2r_infilt_ 1l_gain reserved outdai_2r_infilt_1l_gain 0x00000086 dmix_outda i_2r_infilt_ 1r_gain reserved outdai_2r_infilt_1r_gain 0x00000087 dmix_outda i_2r_infilt_ 2l_gain reserved outdai_2r_infilt_ 2l_gain 0x00000088 dmix_outda i_2r_infilt_ 2r_gain reserved outdai_2r_infilt_2r_gain 0x00000089 dmix_outda i_2r_toneg en_gain reserved outdai_2r_tonegen_gain 0x0000008a dmix_outda i_2r_indai_1 l_gain reserved outdai_2r_indai_1l_gain 0x0000008b dmix_outda i_2r_indai_1 r_ gain reserved outdai_2r_indai_1r_gain
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 133 of 171 ? 2016 dialog semiconductor table 200 : drouting_outdai_1l (page 0: 0x0000005c) bit mode symbol description reset 6:0 r/w outdai_1l_src data input selection control for the outdai_1l output stream bit 0 = input filter 1 left bit 1 = input filter 1 right bit 2 = input filter 2 left bit 3 = input filter 2 right bit 4 = tone generator bit 5 = dai 1 input left data bit 6 = dai 1 input right data bit 7 = reserved for each bit position: 0 = input not selected 1 = input selected 0x1 table 201 : dmix_outdai_1l_infilt_1l_gain (page 0: 0x0000005d) bit mode symbol description reset 4:0 r/w outdai_1l_infilt_1l_ga in gain control for the infilt_1l to outdai_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 202 : dmix_outdai_1l_infilt_1r_gain (page 0: 0x0000005e) bit mode symbol description reset 4:0 r/w outdai_1l_infilt_1r_g ain gain control for the infilt_1r to outdai_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 134 of 171 ? 2016 dialog semiconductor table 203 : dmix_outdai_1l_infilt_2l_gain (page 0: 0x0000005f) bit mode symbol description reset 4:0 r/w outdai_1l_infilt_2l_ga in gain control for the infilt_2l to outdai_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 204 : dmix_outdai_1l_infilt_2r_gain (page 0: 0x00000060) bit mode symbol description reset 4:0 r/w outdai_1l_infilt_2r_g ain gain control for the infilt_2r to outdai_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 205 : dmix_outdai_1l_tonegen_gain (page 0: 0x00000061) bit mode symbol description reset 4:0 r/w outdai_1l_tonegen_g ain gain control for the tonegen to outdai_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 135 of 171 ? 2016 dialog semiconductor table 206 : dmix_outdai_1l_indai_1l_gain (page 0: 0x00000062) bit mode symbol description reset 4:0 r/w outdai_1l_indai_1l_g ain gain control for the indai_1l to outdai_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 207 : dmix_outdai_1l_indai_1r_gain (page 0: 0x00000063) bit mode symbol description reset 4:0 r/w outdai_1l_indai_1r_g ain gain control for the indai_1r to outdai_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 208 : drouting_outdai_1r (page 0: 0x00000064) bit mode symbol description reset 6:0 r/w outdai_1r_src data input selection control for the outdai_1r output stream bit 0 = input filter 1 left bit 1 = input filter 1 right bit 2 = input filter 2 left bit 3 = input filter 2 right bit 4 = tone generator bit 5 = dai 1 input left data bit 6 = dai 1 input right data bit 7 = reserved for each bit position: 0 = input not selected 1 = input selected 0x4
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 136 of 171 ? 2016 dialog semiconductor table 209 : dmix_outdai_1r_infilt_1l_gain (page 0: 0x00000065) bit mode symbol description reset 4:0 r/w outdai_1r_infilt_1l_g ain gain control for the infilt_1l to outdai_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps th rough... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 210 : dmix_outdai_1r_infilt_1r_gain (page 0: 0x00000066) bit mode symbol description reset 4:0 r/w outdai_1r_infilt_1r_g ain gain control for the infilt_1r to outdai_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 211 : dmix_outdai_1r_infilt_2l_gain (page 0: 0x00000067) bit mode symbol description reset 4:0 r/w outdai_1r_infilt_2l_g ain gain control for the infilt_2l to outdai_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 137 of 171 ? 2016 dialog semiconductor table 212 : dmix_outdai_1r_infilt_2r_gain (page 0: 0x00000068) bit mode symbol description reset 4:0 r/w outdai_1r_infilt_2r_g ain gain control for the infilt_2r to outdai_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 213 : dmix_outdai_1r_tonegen_gain (page 0: 0x00000069) bit mode symbol description reset 4:0 r/w outdai_1r_tonegen_g ain gain control for the tonegen to outdai_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 214 : dmix_outdai_1r_indai_1l_gain (page 0: 0x0000006a) bit mode symbol description reset 4:0 r/w outdai_1r_indai_1l_g ain gain control for the indai_1l to outdai_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 138 of 171 ? 2016 dialog semiconductor table 215 : dmix_outdai_1r_indai_1r_gain (page 0: 0x0000006b) bit mode symbol description reset 4:0 r/w outdai_1r_indai_1r_g ain gain control for the indai_1r to outdai_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 216 : drouting_outfilt_1l (page 0: 0x0000006c) bit mode symbol description reset 6:0 r/w outfilt_1l_src data input selection control for the outfilt_1l output stream bit 0 = input filter 1 left bit 1 = input filter 1 right bit 2 = input filter 2 left bit 3 = input filter 2 right bit 4 = tone generator bit 5 = dai 1 input left data bit 6 = dai 1 input right data bit 7 = reserved for each bit position: 0 = input not selected 1 = input selected 0x1 table 217 : dmix_outfilt_1l_infilt_1l_gain (page 0: 0x0000006d) bit mode symbol description reset 4:0 r/w outfilt_1l_infilt_1l_gai n gain control for the infilt_1l to outfilt_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 139 of 171 ? 2016 dialog semiconductor table 218 : dmix_outfilt_1l_infilt_1r_gain (page 0: 0x0000006e) bit mode symbol description reset 4:0 r/w outfilt_1l_infilt_1r_gai n gain control for the infilt_1r to outfilt_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 219 : dmix_outfilt_1l_infilt_2l_gain (page 0: 0x0000006f) bit mode symbol description reset 4:0 r/w outfilt_1l_infilt_2l_gai n gain control for the infilt_2l to outfilt_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 220 : dmix_outfilt_1l_infilt_2r_gain (page 0: 0x00000070) bit mode symbol description reset 4:0 r/w outfilt_1l_infilt_2r_gai n gain control for the infilt_2r to outfilt_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 140 of 171 ? 2016 dialog semiconductor table 221 : dmix_outfilt_1l_tonegen_gain (page 0: 0x00000071) bit mode symbol description reset 4:0 r/w outfilt_1l_tonegen_g ain gain control for the tonegen to outfilt_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 222 : dmix_outfilt_1l_indai_1l_gain (page 0: 0x00000072) bit mode symbol description reset 4:0 r/w outfilt_1l_indai_1l_ga in gain control for the indai_1l to outfilt_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 223 : dmix_outfilt_1l_indai_1r_gain (page 0: 0x00000073) bit mode symbol description reset 4:0 r/w outfilt_1l_indai_1r_g ain gain control for the indai_1r to outfilt_1l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 141 of 171 ? 2016 dialog semiconductor table 224 : drouting_outfilt_1r (page 0: 0x00000074) bit mode symbol description reset 6:0 r/w outfilt_1r_src data input selection control for the outfilt_1r output stream bit 0 = input filter 1 left bit 1 = input filter 1 right bit 2 = input filter 2 left bit 3 = input filter 2 right bit 4 = tone generator bit 5 = dai 1 input left data bit 6 = dai 1 input right data bit 7 = reserved for each bit position: 0 = input not select ed 1 = input selected 0x4 table 225 : dmix_outfilt_1r_infilt_1l_gain (page 0: 0x00000075) bit mode symbol description reset 4:0 r/w outfilt_1r_infilt_1l_gai n gain control for the infilt_1l to outfilt_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 226 : dmix_outfilt_1r_infilt_1r_gain (page 0: 0x00000076) bit mode symbol description reset 4:0 r/w outfilt_1r_infilt_1r_ga in gain control for the infilt_1r to outfilt_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 142 of 171 ? 2016 dialog semiconductor table 227 : dmix_outfilt_1r_infilt_2l_gain (page 0: 0x00000077) bit mode symbol description reset 4:0 r/w outfilt_1r_infilt_2l_gai n gain control for the infilt_2l to outfilt_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 228 : dmix_outfilt_1r_infilt_2r_gain (page 0: 0x00000078) bit mode symbol description reset 4:0 r/w outfilt_1r_infilt_2r_ga in gain control for the infilt_2r to outfilt_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 229 : dmix_outfilt_1r_tonegen_gain (page 0: 0x00000079) bit mode symbol description reset 4:0 r/w outfilt_1r_tonegen_g ain gain control for the tonegen to outfilt_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 143 of 171 ? 2016 dialog semiconductor table 230 : dmix_outfilt_1r_indai_1l_gain (page 0: 0x0000007a) bit mode symbol description reset 4:0 r/w outfilt_1r_indai_1l_g ain gain control for the indai_1l to outfilt_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 231 : dmix_outfilt_1r_indai_1r_gain (page 0: 0x0000007b) bit mode symbol description reset 4:0 r/w outfilt_1r_indai_1r_g ain gain control for the indai_1r to outfilt_1r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 232 : drouting_outdai_2l (page 0: 0x0000007c) bit mode symbol description reset 6:0 r/w outdai_2l_src data input selection control for the outdai_2l output stream bit 0 = input filter 1 left bit 1 = input filter 1 right bit 2 = input filter 2 left bit 3 = input filter 2 right bit 4 = tone generator bit 5 = dai 1 input left data bit 6 = dai 1 input right data bit 7 = reserved for each bit position: 0 = input not selected 1 = input selected 0x4
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 144 of 171 ? 2016 dialog semiconductor table 233 : dmix_outdai_2l_infilt_1l_gain (page 0: 0x0000007d) bit mode symbol description reset 4:0 r/w outdai_2l_infilt_1l_ga in gain control for the infilt_1l to outdai_2l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 234 : dmix_outdai_2l_infilt_1r_gain (page 0: 0x0000007e) bit mode symbol description reset 4:0 r/w outdai_2l_infilt_1r_g ain gain control for the infilt_1r to outdai_2l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 235 : dmix_outdai_2l_infilt_2l_gain (page 0: 0x0000007f) bit mode symbol description reset 4:0 r/w outdai_2l_infilt_2l_ga in gain control for the infilt_2l to outdai_2l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 145 of 171 ? 2016 dialog semiconductor table 236 : dmix_outdai_2l_infilt_2r_gain (page 0: 0x00000080) bit mode symbol description reset 4:0 r/w outdai_2l_infilt_2r_g ain gain control for the infilt_2r to outdai_2l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 237 : dmix_outdai_2l_tonegen_gain (page 0: 0x00000081) bit mode symbol description reset 4:0 r/w outdai_2l_tonegen_g ain gain control for the tonegen to outdai_2l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 238 : dmix_outdai_2l_indai_1l_gain (page 0: 0x00000082) bit mode symbol description reset 4:0 r/w outdai_2l_indai_1l_g ain gain control for the indai_1l to outdai_2l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 146 of 171 ? 2016 dialog semiconductor table 239 : dmix_outdai_2l_indai_1r_gain (page 0: 0x00000083) bit mode symbol description reset 4:0 r/w outdai_2l_indai_1r_g ain gain control for the indai_1r to outdai_2l mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 240 : drouting_outdai_2r (page 0: 0x00000084) bit mode symbol description reset 6:0 r/w outdai_2r_src data input selection control for the outdai_2r output stream bit 0 = input filter 1 left bit 1 = input filter 1 right bit 2 = input filter 2 left bit 3 = input filter 2 right bit 4 = tone generator bit 5 = dai 1 input left data bit 6 = dai 1 input right data bit 7 = reserved for each bit position: 0 = input not selected 1 = input selected 0x8 table 241 : dmix_outdai_2r_infilt_1l_gain (page 0: 0x00000085) bit mode symbol description reset 4:0 r/w outdai_2r_infilt_1l_g ain gain control for the infilt_1l to outdai_2r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 147 of 171 ? 2016 dialog semiconductor table 242 : dmix_outdai_2r_infilt_1r_gain (page 0: 0x00000086) bit mode symbol description reset 4:0 r/w outdai_2r_infilt_1r_g ain gain control for the infilt_1r to outdai_2r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 243 : dmix_outdai_2r_infilt_2l_gain (page 0: 0x00000087) bit mode symbol description reset 4:0 r/w outdai_2r_infilt_2l_g ain gain control for the infilt_2l to outdai_2r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 244 : dmix_outdai_2r_infilt_2r_gain (page 0: 0x00000088) bit mode symbol description reset 4:0 r/w outdai_2r_infilt_2r_g ain gain control for the infilt_2r to outdai_2r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 148 of 171 ? 2016 dialog semiconductor table 245 : dmix_outdai_2r_tonegen_gain (page 0: 0x00000089) bit mode symbol description reset 4:0 r/w outdai_2r_tonegen_g ain gain control for the tonegen to outdai_2r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 246 : dmix_outdai_2r_indai_1l_gain (page 0: 0x0000008a) bit mode symbol description reset 4:0 r/w outdai_2r_indai_1l_g ain gain control for the indai_1l to outdai_2r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 247 : dmix_outdai_2r_indai_1r_gain (page 0: 0x0000008b) bit mode symbol description reset 4:0 r/w outdai_2r_indai_1r_g ain gain control for the indai_1r to outdai_2r mixer path 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 149 of 171 ? 2016 dialog semiconductor table 245 : register map sidetone_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000e4 sidetone_c trl sidetone_filte r_en sidetone_mut e_en reserved 0x000000e5 sidetone_in _select reserved sidetone_in_select 0x000000e6 sidetone_g ain reserved sidetone_gain 0x000000e8 drouting_s t_outfilt_1 l reserved outfilt_st_1l_src 0x000000e9 drouting_s t_outfilt_1 r reserved outfilt_st_1r_src 0x000000ea sidetone_bi q_3stage_d ata sidetone_biq_3stage_data 0x000000eb sidetone_bi q_3stage_a ddr reserved sidetone_biq_3stage_addr table 249 : sidetone_ctrl (page 0: 0x000000e4) bit mode symbol description reset 7 r/w sidetone_filter_en sidetone path control 0 = sidetone path disabled 1 = sidetone path enabled 0x0 6 r/w sidetone_mute_en sidetone mute control 0 = sidetone not muted 1 = sidetone muted 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 150 of 171 ? 2016 dialog semiconductor table 250 : sidetone_in_select (page 0: 0x000000e5) bit mode symbol description reset 1:0 r/w sidetone_in_select input selection 0 = adc 1l 1 = adc 1r 2 = adc 2l 3 = adc 2r 0x0 table 251 : sidetone_gain (page 0: 0x000000e6) bit mode symbol description reset 4:0 r/w sidetone_gain sidetone gain control 00000 = - 42 db 00001 = - 40.5 db 00010 = - 39.0 db continuing in 1.5 db steps through... 11100 = 0 db to 11101 = 1.5 db 11110 = 3.0 db 11111 = 4.5 db 0x1c table 252 : drouting_st_outfilt_1l (page 0: 0x000000e8) bit mode symbol description reset 2:0 r/w outfilt_st_1l_src data selection control for the outfilt_1l output stream: bit 0 = output filter 1l bit 1 = output filter 1r (out_1l_filter_en must equal 1 to enable this channel) bit 2 = sidetone for each bit: 0 = data source not selected 1 = data source selected 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 151 of 171 ? 2016 dialog semiconductor table 253 : drouting_st_outfilt_1r (page 0: 0x000000e9) bit mode symbol description reset 2:0 r/w outfilt_st_1r_src data selection control for the outfilt_1r output stream bit 0 = output filter 1l (out_1r_filter_en must equal 1 to enable this channel) bit 1 = output filter 1r bit 2 = sidetone for each bit: 0 = data source not selected 1 = data source selected 0x2 table 254 : sidetone_biq_3stage_data (page 0: 0x000000ea) bit mode symbol description reset 7:0 r/w sidetone_biq_3stage _data data to be written to the coefficient registers of the 3 - stage biquad filter 0x0 table 252 : sidetone_biq_3stage_addr (page 0: 0x000000eb) bit mode symbol description reset 4:0 r/w sidetone_biq_3sta ge_addr address of the 3 - stage biquad coefficient register even numbered addresses in this register field write the lower byte of the 16 - bit cooefficient, and odd numbered addresses write the upper byte of the 16 - bit cooefficient a write to the biq_addr register triggers a write of the data 0x0 table 256 : register map system_controller_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x00000014 system_mo des_input adc_mode mode_submit 0x00000015 system_mo des_outpu t dac_mode mode_submit 0x00000016 system_sta tus reserved sc2_busy sc1_busy
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 152 of 171 ? 2016 dialog semiconductor table 257 : system_modes_input (page 0: 0x00000014) bit mode symbol description reset 7:1 r/w adc_mode preconfigured system modes control (input side) bit 1 = reserved bit 2 = mic_1 bit 3 = mic_2 bit 4 = adc_1l bit 5 = adc_1r bit 6 = adc_2l bit 7 = adc_2r for each bit: 0 = disabled 1 = enabled 0x0 0 r/w mode_submit writing to this register bit causes the system controller (scl) to process and activate both the input and the output paths 0x0 table 258 : system_modes_output (page 0: 0x00000015) bit mode symbol description reset 7:1 r/w dac_mode preconfigured system modes control (output side) [1] = reserved [2] = reserved [3] = reserved [4] = hp_l [5] = hp_r [6] = reserved [7] = reserved 0x0 0 - mode_submit writing to this register bit causes the system controller (scl) to process and activate both the input and the output paths 0x0 table 259 : system_status (page 0: 0x00000016) bit mode symbol description reset 1 r sc2_busy indicates the current status of the system controller 2 0 = complete 1 = busy 0x0 0 r sc1_busy indicates the current status of the system controller 1 0 = complete 1 = busy 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 153 of 171 ? 2016 dialog semiconductor table 257 : register map tone_gen_cor_00 page 0 address name # 7 6 5 4 3 2 1 0 register page 0 0x000000a0 tone_gen_ cfg1 start_stopn reserved dtmf_en dtmf_reg 0x000000a1 tone_gen_ cfg2 reserved swg_sel 0x000000a2 tone_gen_f req1_l freq1_l 0x000000a3 tone_gen_f req1_u freq1_u 0x000000a4 tone_gen_f req2_l freq2_l 0x000000a5 tone_gen_f req2_u freq2_u 0x000000a6 tone_gen_ cycles reserved beep_cycles 0x000000a7 tone_gen_ on_per reserved beep_on_per 0x000000a8 tone_gen_ off_per reserved beep_off_per
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 154 of 171 ? 2016 dialog semiconductor table 261 : tone_gen_cfg1 (page 0: 0x000000a0) bit mode symbol description reset 7 r/w start_stopn start and stop control for the tone generator. 1 = start the tone generator. after the tone - generator has finished, it will reset the register to 0. 0 = stop the tone generator. the tone generator will stop after completion of the current beep cycle. in continuous mode, setting this register to 0 causes the tone generator to stop after the next zero - cross. note that this register is cleared automatical ly once the pre - programmed number of beep cycles has completed. 0x0 4 r/w dtmf_en dtmf control 0 = use values in the freq1 & freq2 registers to generate sine wave(s) 1 = use values from dtmf_reg to generate sine - waves 0x0 3:0 r/w dtmf_reg the dtmf keypad values 0 to 15 (0xe='*', 0xf='#') 0x0 table 262 : tone_gen_cfg2 (page 0: 0x000000a1) bit mode symbol description reset 1:0 r/w swg_sel sine wave selection control 00 = sum of both sine wave generator (swg) values is mixed into the audio. 01 = only the first swg value is output 10 = only the second swg value is output 11 = 1 - cos(swg1) or s_ramp functio n for headphone detection 0x0 table 263 : tone_gen_freq1_l (page 0: 0x000000a2) bit mode symbol description reset 7:0 r/w freq1_l output frequency for first sine wave generator (swg) lower byte freq1=(2^16*(f/12000)) - 1 for sr=8/12/16/24/32/48/96 khz freq1=(2^16*(f/11025)) - 1 for sr=11.025/22.05/44.4/88.2 khz 0x55
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 155 of 171 ? 2016 dialog semiconductor table 264 : tone_gen_freq1_u (page 0: 0x000000a3) bit mode symbol description reset 7:0 r/w freq1_u output frequency for first sine wave generator (swg) upper byte freq1=(2^16*(f/12000)) - 1 for sr=8/12/16/24/32/48/96 khz freq1=(2^16*(f/11025)) - 1 for sr=11.025/22.05/44.4/88.2 khz 0x15 table 265 : tone_gen_freq2_l (page 0: 0x000000a4) bit mode symbol description reset 7:0 r/w freq2_l output frequency for second sine wave generator (swg) lower byte freq1=(2^16*(f/12000)) - 1 for sr=8/12/16/24/32/48/96 khz freq1=(2^16*(f/11025)) - 1 for sr=11.025/22.05/44.4/88.2 khz 0x0 table 266 : tone_gen_freq2_u (page 0: 0x000000a5) bit mode symbol description reset 7:0 r/w freq2_u output frequency for second sine wave generator (swg) upper byte freq1=(2^16*(f/12000)) - 1 for sr=8/12/16/24/32/48/96 khz freq1=(2^16*( f/11025)) - 1 for sr=11.025/22.05/44.4/88.2 khz 0x40 table 267 : tone_gen_cycles (page 0: 0x000000a6) bit mode symbol description reset 2:0 r/w beep_cycles control of the number of beep cycles required 000 = 1 cycle 001 = 2 cycles 010 = 3 cycles 011 = 4 cycles 100 = 8 cycles 101 = 16 cycles 110 = 32 cycles 111 = infinite (until start_stopn is set to 0) 0x0
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 156 of 171 ? 2016 dialog semiconductor table 268 : tone_gen_on_per (page 0: 0x000000a7) bit mode symbol description reset 5:0 r/w beep_on_per beep cycle on - period control 00 0001 (0x1) = 10 ms 00 0010 (0x2)= 20 ms 00 0011 (0x3)= 30 ms continuing in 10 ms steps to... 01 0100 (0x14) = 200 ms then 01 0101 (0x15) to 01 1000 (0x18) = reserved then... 01 1001 (0x19) = 250 ms 01 1010 (0x1a) = 300 ms and continuing in 50 ms steps to... 11 1100 (0x3c) = 2000 ms 11 1101 (0x3d) = reserved 11 1 110 (0x3e) = reserved 11 1111 (0x3f) = continuous 0x2 table 269 : tone_gen_off_per (page 0: 0x000000a8) bit mode symbol description reset 5:0 r/w beep_off_per beep cycle off - period control 00 0001 (0x1) = 10 ms 00 0010 (0x2)= 20 ms 00 0011 (0x3)= 30 ms continuing in 10 ms steps to... 01 0100 (0x14) = 200 ms then 01 0101 (0x15) to 01 1000 (0x18) = reserved then... 01 1001 (0x19) = 250 ms 01 1010 (0x1a) = 300 ms a nd continuing in 50 ms steps to... 11 1100 (0x3c) = 2000 ms 11 1101 (0x3d) = reserved 11 1110 (0x3e) = reserved 11 1111 (0x3f) = continuous 0x1
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 157 of 171 ? 2016 dialog semiconductor 11 package i nformation figure 36 : da7217 p ackage o utline d rawing
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 158 of 171 ? 2016 dialog semiconductor 12 external c omponents figure 37 : da7217 e xternal c omponent r equirements 13 ordering i nformation the ordering number consists of the part number followed by a suffix indicating the packing method. for details and availability, please consult dialog semiconductors customer portal or your local sales represe ntative. table 267 : ordering information part n umber package shipment f orm pack q uantity da7217 - 00u32 3 2 - bump wl - csp pb free/green tape and reel (13 inch reel) 7500 da7217 - 00u36 3 2 - bump wl - csp pb free/green tray/waffle pack (engineering samples only - not for mass production) 77 v d d _ m i c v d d _ i o v d d v d d d i g v m i d v r e f d a c r e f g n d h p c s p h p c s n g n d _ c p c 3 1 f c 4 1 f c 5 1 f c 8 1 f c 9 1 f c 1 0 1 f c 1 1 1 f c 1 1 f c 2 1 f v d d v d d _ m i c v d d _ i o c 6 1 f c 7 1 f m i c b i a s 1 m i c b i a s 2 h p c f p h p c f n c 1 2 1 f h p l _ p h p l _ n h p r _ p h p r _ n d a t i n w c l k m c l k b c l k d a t o u t s c l s d a a d i r q c 1 3 1 f c 1 4 1 f c 1 5 1 f c 1 6 1 f m i c 1 _ p / d m i c 1 c l k m i c 1 _ n / d m i c 1 i n m i c 2 _ p / d m i c 2 c l k m i c 2 _ n / d m i c 2 i n n o t e s : c 1 0 , c 1 1 , c 1 2 o n l y r e q u i r e d i f c h a r g e p u m p i s t o b e u s e d c 2 , c 6 , c 7 o n l y r e q u i r e d i f e i t h e r m i c b i a s i s t o b e u s e d c 1 3 , c 1 4 , c 1 5 , c 1 6 o n l y r e q u i r e d i f a n a l o g u e i n p u t s a r e u s e d C d m i c i n t e r f a c e h a s n o a c - c o u p l i n g i r q i s o p e n d r a i n a n d m u s t b e p u l l e d u p t o v d d _ i o s c l a n d s d a r e q u i r e p u l l - u p r e s i s t o r s C t y p i c a l v a l u e - 2 k 2 d a 7 2 1 7
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 159 of 171 ? 2016 dialog semiconductor appendix a applications i nformation a.1 codec initialization depending on the specific application, some general settings need to be set. examples of these settings in clude the sample rate, the pll, and the dai. then the amplifiers, the mixers and channels of the adc/dac have to be configured and enabled via their respective control registers. an example sequence is shown below: 1. configure clock mode as required for oper ation, (for example pll or pll bypass). 2. configure the dai . 3. configure the charge pump if the headphone path is in use. 4. set input and output mixer paths and gains. 5. enable input and output paths using the level 2 system controller (slc2). a.2 automatic l evel c ontrol c alibration when using the automatic level control (alc or ags) in sync - mode the dc offset between the digital and analog pgas must be cancelled. this is performed automatically if the following procedure is performed: 1. enable microphone amplifiers u nmuted. 2. mute microphones. 3. enable input mixer and adc unmuted. 4. enable aif interface. 5. set calib_auto_en in calib_ctrl to 1 (calib_ctrl = 0x44). this bit wi ll auto - clear when calibration is complete. 6. when calibration is complete, enable the alc with alc_sync_mode ( alc_ctrl1 = 0x30) and calib_offset_en ( calib_ctrl = 0x44). 7. unmute microphones.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 160 of 171 ? 2016 dialog semiconductor appendix b components the following recommended components are examples selected from requirements of a typical application. the electrical characteristics (that is, the supported vol tage/current ranges) have to be cross - checked and component types may need to be adapted for the individual needs of the target circuitry. b.1 a udio i nputs table 268 : audio i nputs pin n ame ball no. power d omain description type mic1_p/dmic1clk a15 vdd differential mic. input 1 (positive) / single - ended mic. input 1 (left) or digital microphone 1 clock analog input or digital output mic1_n/dmic1n b14 vdd differential mic. input 1 (negative) / single - ended mic. input 2 (left) or digital microphone 1 data analog input or digital input mic2_p/dmic2clk d16 vdd differential mic. input 2 (positive) / single - ended mic. input 1 (right) or digital microphone 2 clock analog input or digital output mic2_n/dmic2in c15 vdd differential mic. input 2 (negative) / single - ended mic. input 2 (right) or digital microphone 2 data analog input or digital input the da7217 microphone inputs can be configured to accommodate single - ended or differential analog microphones, line inputs or digital mi crophones. when using the inputs in an analog configuration, a dc blocking capacitor is required for each used input. the choice of capacitor is determined by the filter that is formed between that capacitor and the input impedance of the input pin which can be found in table 6 , the microphone amplifier electrical characteristics section of the datasheet. ? = 1 2 ? . ? . ? ? where fc is the 3 db cut off fre quency of the low pass filter (typically 20 hz for audio applications). a 1 f capacitor is suitable for most applications. due to their high stability tantalum capacitors are particularly suitable for this application. ceramic equivalents with an x5r diel ectric are recommended as a cost effective alternative. care should be taken to ensure that the desired capacitance is maintained over operating temperature and voltage. z5u dielectric ceramics should be avoided due to their susceptibility to microphonic e ffects. unused inputs can be left floating or connected via a capacitor to ground. when the inputs are configured for digital microphones, these pins can be routed directly to a digital microphones clock and data lines. in stereo mode they can be connected to two digital microphones for each data/clock pair to allow up to four digital microphones to be connected to the device. each data lane is configured to receive data on the rising clock edge for one channel, and on the falling edge for the othe r channel. the clock output operates at 1.5 mhz or 3 mhz. the appropriate layout considerations for clock signals should be followed.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 161 of 171 ? 2016 dialog semiconductor b.2 microphone b ias table 269 : microphone b ias pin n ame bump/ p in power d omain description type micbias1 b12 vdd_mic microphone bias output 1 analog output micbias2 b16 vdd_mic microphone bias output 2 analog output a 1 f capacitor to gnd should be used to decouple the micbias output. figure 38 : micbias d ecoupling b.3 audio o utputs table 270 : da7217 h eadphone o utputs pin n ame bump/ p in power d omain description type hpl_p a5 vdd differential headphone output (left) positive analog output hpl_n b6 vdd differential headphone output (left) negative analog output hpr_p b4 vdd differential headphone output (right) positive analog output hpr_n a3 vdd differential headphone output (right) negative analog output da7217 contains a stereo differential headphone amplifier. for optimum noise immunity each headphone channels p and n connections should be routed together and connected differentially across the headphone load. in this configuration the differential routing cancels common mode noise on the headphone fr om the pcb. figure 39 : da7217 r ecommended h eadphone l ayout m i c b i a s 1 m 1 1 m i c b i a s 1 f m i c b i a s 2 b 1 6 m i c b i a s 2 1 f b 1 2 m i c b i a s 1 m 1 1 m i c b i a s a 5 h p l _ p b 4 h p r _ p h p r _ n a 3 b 6 h p l _ n
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 162 of 171 ? 2016 dialog semiconductor b.4 headphone c harge p ump table 271 : headphone c harge p ump pin n ame bump/ p in power d omain description type hpcsp a1 vdd charge pump reservoir capacitor (pos) charge pump hpcsn d2 vdd charge pump reservoir capacitor (neg) charge pump hpcfp c1 vdd charge pump flying capacitor (pos) charge pump hpcfn c3 vdd charge pump flying capacitor (neg) charge pump a 1 f reservoir capacitor is required between the hpcsp and gnd and between hpcsn and gnd when the charge pump is used. for best performance the capacitors should be fitted as near to the device as possible. figure 40 : charge p ump d ecoupling a 1 f flying capacitor is required between hpcfp and hpcfn. for best performance the capacitor should be fitted as near to the device as possible. figure 41 : charge p ump f lying c apacitor to ensure stable charge pump operation the effective series resistance of the flying capacitor should be kept to a minimum. this can be achieved by selecting an appropriate capacitor dielectric (x5r, x7r) and ensuring that th e capacitor is placed as near to the device as possible. ideally the connection between the pins and the capacitor should not run through any vias. connect on top layer of pcb only. b.4.1 single s upply m ode when using the device in single supply mode the charge pump is not used. hpcsp becomes the positive supply for the headphone amplifier (usually tied to vdd) and the hpcsn ball becomes the negative supply for the headphone amplifier (tied to gnd). a 1 f r eservoir capacitor is required between the hpcsp and gnd. in single supply mode the hpcfp and hpcfn pins should be left floating. figure 42 : single s upply m ode o peration m 1 1 m i c b i a s 1 f d 2 h p c s n 1 f a 1 h p c s p m 1 1 m i c b i a s 1 f c 3 h p c f n c 1 h p c f p m 1 1 m i c b i a s 1 f d 2 h p c s n a 1 h p c s p c 3 h p c f n c 1 h p c f p v d d
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 163 of 171 ? 2016 dialog semiconductor b.5 digital i nterfaces table 272 : digital i nterfaces C i 2 c pin n ame bump/ p in power d omain description type sda d12 vdd_io i 2 c bidirectional data digital input / output scl c11 vdd_io i 2 c clock input digital input the i 2 c data and clock lines are powered from vdd_io. both i 2 c line require a pull up to vdd_io. the value of this pull up is dependent on i 2 c bus speed, bus length and supply voltage. a 2.2 k? resistor is satisfactory in most applications. figure 43 : i 2 c p ull u ps table 273 : digital i nterfaces - i 2 s pin n ame bump/ p in power d omain description type datin c7 vdd_io dai data input digital output datout c9 vdd_io dai data output digital input bclk d6 vdd_io dai bit clock digital input / output wclk d8 vdd_io dai word clock (l/r select) digital input / output mclk d10 vdd_io master clock digital input the dai interface pins should be treated as clock signals and the appropriate layout rules for routing clocks should be adhered to. s c l s d a d 1 2 c 1 1 v d d _ i o 2 k 2 ? 2 k 2 ?
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 164 of 171 ? 2016 dialog semiconductor b.6 references table 274 : references pin n ame bump/ p in power d omain description type vdddig d4 vdd digital supply reference capacitor reference vmid a9 vdd audio mid - rail reference capacitor reference vref a11 vdd bandgap reference capacitor reference dacref a7 vdd audio dac reference capacitor reference a 1 f capacitor should be connected between each of the references and gnd. for best performance the capacitors should be fitted as near to the device as possible. figure 44 : reference c apacitors m 1 1 m i c b i a s 1 f a 1 1 v r e f 1 f a 9 v m i d d 4 1 f v d d d i g v d d d i g a 7 1 f
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 165 of 171 ? 2016 dialog semiconductor b.7 supplies table 275 : power s upplies pin n ame bump/ p in power d omain description type vdd b8 min: 1.7 v max: 2.65 v supply for analog circuits / supply for headphone charge pump power supply vdd_io c5 min: 1.5 v max: 3.6 v supply for digital interfaces power supply vdd_mic a13 min: 1.8 v max: 3.6 v supply for microphone bias circuits power supply decoupling capacitors are recommended between all supplies and gnd. these capacitors should be located as near to the device as possible. figure 45 : power s upply d ecoupling b.8 ground table 276 : ground pin n ame bump/ p in power d omain description type gnd b10 analog ground power ground gnd_cp b2 charge pump/digital ground power ground gnd and gnd_cp should be connected directly to the system ground. m 1 1 m i c b i a s 1 f a 1 3 v d d _ m i c c 5 1 f v d d _ i o b 8 1 f 1 . 5 v - 3 . 6 v 1 . 8 v - 3 . 6 v 1 . 7 v - 2 . 6 5 v v d d
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 166 of 171 ? 2016 dialog semiconductor b.9 capacitor s election ceramic capacitors are manufactured with a variety of dielectrics, each with a different behavior over temperature and applied voltage. capacitors must have a dielectric adequate to ensure the minimum capacitance over the necessary temperature range, dc bi as conditions and low equivalent series resistance (esr). x5r or x7r dielectrics with a voltage rating of 6.3 v or 10 v are recommended for best performance. y5v and z5u dielectrics are not recommended for use because of their poor temperature and dc bias characteristics. the worst - case capacitance accounting for capacitor variation over temperature, component tolerance, and voltage is calculated using the following equation: ? ??? = ? ??? ? ( 1 ? ?????? ) ? ( 1 ? ??? ) where: ceff is the effective capacitance at the operating voltage. tempco is the worst - case capacitor temperature coefficient. tol is the worst - case component tolerance. these figures can be found in the manufacturers datasheet. in the example below, the worst - case temperature coeffi cient (tempco) over ?55 c to +85 c is assumed to be 15 %. the tolerance of the capacitor (tol) is assumed to be 10 %, and cout is 0.65 f at 1.8 v. substituting these values in the equation yields ? ??? = 0 . 65 ?? ? ( 1 ? 0 . 15 ) ? ( 1 ? 0 . 1 ) = 0 . 497 ?? table 277 : r ecommended c apacitor t ypes application value size temp. c har. tolerance rated v oltage type vdd,vdd_io, vdd_mic, vdddig, dacref, vmid,vref, hpcfp/hpcfn, hpcsp, hpcsn, micbias1, micbias2 12x 1 f 0201 x5r +/ - 15 % +/ - 10 % 6.3 v murata grm033r60j105m
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 167 of 171 ? 2016 dialog semiconductor appendix c pcb l ayout g uidelines da7217 uses dialog semiconductors route easy? technology allowing the device to be routed using conventional, low cost, pcb technology. all device balls are routable on the top level and conventional plated through hole vias can be used throughout. this desi gn is fully realizable using a 2 - layer pcb however for optimum performance it is recommended that a 4 - layer pcb is used with layers 2 and 3 as solid ground planes. decoupling and reference capacitors should be located as close to the device as possible and appropriately sized tracks should be used for all power connections. figure 46 : da7217 example l ayout c.1 layout and s chematic s upport copies of the evaluation board schematics and layout are available on request to aid in pcb deve lopment. dialog semiconductor also offer a schematic and layout review service for all designs utilizing dialogs devices. please contact your local dialog semiconductor office.
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 168 of 171 ? 2016 dialog semiconductor c.2 general r ecommendations appropriate trace width and number of vias should be used for all power supply paths a common ground plane should be used, which allows proper electrical and thermal performance noise - sensitive analog signals such as feedback lines or clock connections should be kept away from traces carrying pulsed analog or digital signals. this can be achieved by separation (distance) or by shielding with quiet signals or ground traces decoupling capacitors should be x5r ceramics and should be placed as near to the device as possible charge pump capacitors should be x5r c eramics and should be placed as near to the device as possible
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 169 of 171 ? 2016 dialog semiconductor revision h istory revision date description 1.0 december 2014 initial version. 2.0 march 2015 pre - production specs added. ball layout and pin descriptions modified. details on block descriptions modified and clarified. a few registers (names and descriptions) modified. 2.1 june 2015 clarifications and details added to block descriptions and register descriptions . 2.2 december 2015 updated to new template . restructure of document sec tions . correction of typos . registers corrected . 2.3 march 2016 added power consumption figures for 32 ? load . correction of typos . for revision 2.4 see next page
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 170 of 171 ? 2016 dialog semiconductor revision date description 2.4 26 - aug - 2016 1. moved to template cfr0011 - 120 rev 7 and reformatted accordingly. 2. several instances of text, in general description, keywords, applications and other sections reordered and reworded slightly for clarity. 3. added terminology section 4. parameter changes: a. absolute max ratings: i. added digital microphone io pins ii. removed hpdet for da7217 only b. electrical characteristics: i. added t a = 25 o c to general test conditions ii. added typ value and change max value to 7 a for powerdown mode in table 5 iii. r emoved t a and f s from note 1 of table 5 iv. merged mic amp tables 8 & 9 into table 7 v. added crosstalk to table 7 vi. removed in - band spurious noise from table 9 vii. removed relative to vdd from psrr condition in table 9 and table 10 viii. changed thd+n typ to - 88db in table 11 ix. added channel separat ion to table 11 x. added crosstalk to table 11 xi. removed gain step error from table 12 xii. added gain step size and programmable gain to table 13 and table 15 xiii. merged i/o pins vih and vil rows, added i/o pins voh and vol rows added dmic vih, voh, vil and vol rows. added hlpdet voh and vol for da7218 only in table 22 xiv. abbreviated table 31 xv. changed figure 11 to include clarify connection with digital engine xvi. changed figure 16 to show two two mixer s and clarify i/p and o/p signal paths xvii. updated frequency ranges of pll and system clock in section 9.5.2 xviii. updated ordering information table 267 to clarify 32 bump package and pack quantity of 7500 for tape and reel. 2.5 01 sep 2016 removed confidentiality statement and watermark
da7217 ultra - low power stereo codec datasheet revision 2.5 01 sep 2016 cfr0011 - 120 - 00 171 of 171 ? 2016 dialog semiconductor status definitions revision datasheet status product status definition 1. target development this datasheet contains the design specifications for product development. specifications may be changed in any manner without notice. 2. preliminary qualification this datasheet contains the specifications and preliminary characterization data for products in pre - production. specifications may be changed at any time without notice in order to improve the design. 3. final production this datasheet contains the final specifications for products in volume production. the specifications may be changed at any time in order to improve the design, manufacturing and supply. major specification changes are communicated via customer product notifications. datasheet changes are communicated via www.dialog - semiconductor.com . 4. obsolete archived this datasheet con tains the specifications for discontinued products. the information is provided for reference only. disclaimer information in this document is believed to be accurate and reliable. however, dialog semiconductor does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information. dialog semiconductor furthermore takes no responsibility whatsoever for the content in this document if provided by any information source outside of dialog semicondu ctor. dialog semiconductor reserves the right to change without notice the information published in this document, including withou t limitation the specification and the design of the related semiconductor products, software and applications. applications , software, and semiconductor products described in this document are for illustrative purposes only. dialog semiconductor makes no representation or warranty that such applications, software and semiconductor products will be suitable for the specified us e without further testing or modification. unless otherwise agreed in writing, such testing or modification is the sole responsibility of the customer and dialog semiconductor excludes all liability in this respect. customer notes that nothing in this doc ument may be construed as a license for customer to use the dialog semiconductor products, software and applications referred to in this document. such license must be separately sought by customer with dialog semiconductor. all use of dialog semiconductor products, software and applications referred to in this document are subject to dialog semiconductors standard terms and conditions of sale , available on the company websit e ( www.dialog - semiconductor.com ) unless otherwise stated. dialog and the dialog logo are trademarks of dialog semiconductor plc or its subsidiaries. all other product or service names are the property of their respective owners. ? 2016 dialog semiconductor. all rights reserved . rohs c ompliance dialog semiconductors suppliers certify that its products are in compliance with the requirements of directive 2011/65/eu of the european parliament on the restriction of the use of certain hazardous substances in electrical and electro nic equipment. rohs certificates from our suppliers are available on request. contacting dialog semiconductor united kingdom (headquarters) dialog semiconductor (uk) ltd phone: +44 1793 757700 germany dialog semiconductor gmbh phone: +49 7021 805 - 0 the netherlands dialog semiconductor b.v. phone: +31 73 640 8822 north america dialog semiconductor inc. phone: +1 408 845 8500 japan dialog semiconductor k. k. phone: +81 3 5425 4567 taiwan dialog semiconductor taiwan phone: +886 281 786 222 singapore dialog semiconductor singapore phone: +65 64 8499 29 hong kong dialog semiconductor hong kong phone: +852 3769 5200 korea dialog semiconductor korea phone: +82 2 3469 8200 china (shenzhen) dialog semiconductor china phone: +86 755 2981 3669 china (shanghai) dialog semiconductor china phone: +86 21 5424 9058 email: enquiry@diasemi.com web site: www.dialog - semiconductor.com


▲Up To Search▲   

 
Price & Availability of DA7217-00U32

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X